Merge pull request #4586 from yiisoft/ci-dev-ini

CI tests using development ini
This commit is contained in:
Marco van 't Wout
2025-04-02 12:44:00 +02:00
committed by GitHub
4 changed files with 8 additions and 0 deletions

View File

@@ -110,6 +110,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
extensions: ${{ env.extensions }}
ini-file: development
ini-values: date.timezone='UTC'
coverage: xdebug
tools: composer:v2, pecl

View File

@@ -1,5 +1,10 @@
<?php
if (version_compare(PHP_VERSION, '8.3', '>=')) {
// skip deprecation errors in PHP 8.3 and above
error_reporting(E_ALL & ~E_DEPRECATED);
}
defined('YII_ENABLE_EXCEPTION_HANDLER') or define('YII_ENABLE_EXCEPTION_HANDLER',false);
defined('YII_ENABLE_ERROR_HANDLER') or define('YII_ENABLE_ERROR_HANDLER',false);
defined('YII_DEBUG') or define('YII_DEBUG',true);

View File

@@ -252,4 +252,5 @@ class CDbCommandTest extends CTestCase
}
}
#[\AllowDynamicProperties]
class TestClass {}

View File

@@ -85,6 +85,7 @@ class CJSONTest extends CTestCase {
$className = get_class($this).'_JsonSerializable';
$classCode = <<<EOL
class $className implements JsonSerializable{
#[ReturnTypeWillChange]
public function jsonSerialize()
{
return 'test';