Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
412d872
Salvando andamento
gersonfs Mar 19, 2025
56df9e4
Removendo suites
gersonfs Mar 19, 2025
eea3a7a
Removendo cache
gersonfs Mar 19, 2025
e0a71e8
Ignorando pasta
gersonfs Mar 19, 2025
cabff78
Removendo arquivos não usados
gersonfs Mar 20, 2025
de97ff4
Ajustes testes
gersonfs Mar 31, 2025
8d49de3
Removendo classe
gersonfs Jun 23, 2025
b8243fb
Correções em alguns testes
gersonfs Jun 23, 2025
3ffc908
Correções testes
gersonfs Jun 23, 2025
c18a208
Correções testes
gersonfs Jun 23, 2025
e3ae5f5
Correções testes
gersonfs Jun 23, 2025
4103994
Correções testes
gersonfs Jun 23, 2025
0ff87b4
Correções testes
gersonfs Jun 23, 2025
dedd370
Correções PHP 8.5 + PHPUnit 10: deprecations, warnings e compatibilidade
gersonfs Mar 16, 2026
132e39e
Fix ApplicationControllerTest: output buffers e session.cookie_secure
gersonfs Mar 16, 2026
7c7449c
Corrige testes do Console em PHP 8.4 e PHPUnit 10
gersonfs May 11, 2026
bebe4b1
Corrige testes Core/Error/Model em PHP 8.4 e PHPUnit 10
gersonfs May 11, 2026
bb72a71
Adiciona fixtures faltantes e adapta testes Model ao PHPUnit 10
gersonfs May 11, 2026
42d8d67
Corrige testes Console-derived (Routing/Network/View/Controller)
gersonfs May 11, 2026
76b8265
Avança suporte a PHPUnit 10 em Utility, TestSuite e helpers
gersonfs May 11, 2026
1b4d229
Pré-carrega CakeRequest/CakeResponse e ajusta Cache/Log/Scaffold
gersonfs May 11, 2026
9fb2b10
Reduz erros cross-suite (CakeRequest cleanup, Session handler, libxml)
gersonfs May 11, 2026
92ca92e
Mais correções: AppTest paths, ModelWrite ids, Folder/Media/DataSource
gersonfs May 11, 2026
e247bf0
DboSourceTest::testFetchAllBooleanReturns aceita [] (SQLite DDL)
gersonfs May 11, 2026
58961e7
AppTest::testIncreaseMemoryLimit/testImporting + DebuggerTest fixes
gersonfs May 11, 2026
ee4725d
CakeTestFixture::truncate engole PDOException de tabela ausente
gersonfs May 11, 2026
477e5b5
CakeFixtureManager: defensivos em _setupTable e shutDown
gersonfs May 11, 2026
8fe1bdb
CakeFixtureManager: cache opcional de instâncias de fixture
gersonfs May 11, 2026
213a614
MysqlTest: fixtures faltantes + reset de quote chars; CI: PHP 8.5
gersonfs May 11, 2026
6123328
Elimina deprecations PHP 8.1+ em todas as suítes de teste
gersonfs May 11, 2026
8a1fd85
CakeSession: implementa SessionHandlerInterface nos handlers built-in
gersonfs May 11, 2026
dd0ba13
Reset session handler em tearDown/setUp para isolar testes cross-suite
gersonfs May 11, 2026
4a57fc2
CakeRequestTest::tearDown limpa \$_POST e \$_FILES
gersonfs May 11, 2026
268d6bd
composer.json: roda phpunit direto e suporta PHP 8.5
gersonfs May 11, 2026
9bb28d0
CI: adiciona PHP 7.4 à matriz
gersonfs May 11, 2026
3e1bd22
Remove suporte a PHP 7.4
gersonfs May 11, 2026
af694a2
Corrige falhas do CI (PHP 8.1-8.5)
gersonfs May 11, 2026
e7440a8
Remove suporte a ext-mcrypt (deprecated em PHP 7.1, removido no 7.2)
gersonfs May 11, 2026
fe0b9da
Corrige testes que dependem de locale e fixture/fluxo isolado
gersonfs May 11, 2026
db142ba
Corrige deprecations PHP 8.5 e race condition em testes Auth
gersonfs May 11, 2026
5d47d30
CI hardening + limpeza pós-drop do PHP 7.4
gersonfs May 11, 2026
dd15ea2
Revert executionOrder p/ depends,defects
gersonfs May 11, 2026
37fbb7b
Restaura unset de session.save_handler ini key (PHP 7.2+)
gersonfs May 11, 2026
3acf21c
Reverte MySQL na matriz e restaura testes pulados
gersonfs May 11, 2026
ff69227
Corrige state-pollution real: debug deixado false por FormHelperTest
gersonfs May 11, 2026
0db40df
Restaura Configure::debug em tearDown nos testes que mutavam debug
gersonfs May 11, 2026
cb51ddd
DboSourceTest::setUp força debug=2 + MysqlTest declara \$_debug
gersonfs May 11, 2026
ad8a945
Sqlite::limit usa DboSource::_intString (PHP 8.5 float deprecation)
gersonfs May 11, 2026
2c049c5
assertDateEquals em mais locais com race de timestamp
gersonfs May 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,37 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['8.1', '8.2', '8.3', '8.4']
php-version: ['8.1', '8.2', '8.3', '8.4', '8.5']
db: ['sqlite', 'mysql']
steps:
- uses: niden/actions-memcached@v7
- uses: shogo82148/actions-setup-redis@v1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl, mysql, zlib, dom, openssl, soap, json, simplexml, libxml, mcrypt, sqlite3
extensions: mbstring, intl, mysql, zlib, dom, openssl, soap, json, simplexml, libxml, sqlite3
coverage: none

- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: criando-databases
run: |
mkdir app/tmp app/tmp/cache app/tmp/cache/models app/tmp/cache/persistent app/tmp/cache/views app/tmp/logs app/tmp/sessions app/tmp/tests
mkdir lib/Cake/Test/test_app/tmp/cache lib/Cake/Test/test_app/tmp/cache/models lib/Cake/Test/test_app/tmp/cache/persistent lib/Cake/Test/test_app/tmp/cache/views lib/Cake/Test/test_app/tmp/logs lib/Cake/Test/test_app/tmp/sessions lib/Cake/Test/test_app/tmp/tests
sudo locale-gen de_DE
sudo locale-gen es_ES
sudo locale-gen en_US
sudo systemctl start mysql.service
mysql -uroot -p"root" -e "CREATE DATABASE cakephp_test"
mysql -uroot -p"root" -e "CREATE DATABASE cakephp_test2"
mysql -uroot -p"root" -e "CREATE DATABASE cakephp_test3"
mysql -uroot -p"root" -e "SELECT version()"

- name: Rodando PHPUnit
env:
DB: ${{ matrix.db }}
run: |
composer install --no-progress --no-suggest -o --no-ansi --no-interaction
composer test
#DB=sqlite php ./lib/Cake/Console/cake.php test core Model/Datasource/Database/Sqlite --stderr --verbose
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ Icon?
ehthumbs.db
Thumbs.db
lib/Cake/Console/.phpunit.result.cache
.phpunit.cache
1 change: 1 addition & 0 deletions app/Config/database.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

#[\AllowDynamicProperties]
class DATABASE_CONFIG
{
private $identities = array(
Expand Down
9 changes: 4 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@
"source": "https://github.com/cakephp/cakephp"
},
"require": {
"php": ">=7.4,<8.5"
"php": ">=8.1,<8.6"
},
"suggest": {
"ext-openssl": "You need to install ext-openssl or ext-mcrypt to use AES-256 encryption",
"ext-mcrypt": "You need to install ext-openssl or ext-mcrypt to use AES-256 encryption"
"ext-openssl": "Required for AES-256 encryption (Security::encrypt/decrypt)"
},
"require-dev": {
"rector/rector": "^0.12.5",
"phpunit/phpunit": "9.*"
"phpunit/phpunit": "^10.0"
},
"config": {
"vendor-dir": "vendors/",
Expand All @@ -41,6 +40,6 @@
"@test"
],
"cs-check": "./vendors/bin/phpcs -p --extensions=php --standard=CakePHP ./lib/Cake",
"test": "php ./lib/Cake/Console/cake.php test core AllTests --stderr --verbose"
"test": "./vendors/bin/phpunit"
}
}
Loading
Loading