Skip to content

fix: use native PHP truthiness for condition evaluation in when()/whenNot() #13295

fix: use native PHP truthiness for condition evaluation in when()/whenNot()

fix: use native PHP truthiness for condition evaluation in when()/whenNot() #13295

Triggered via pull request May 23, 2025 12:46
Status Success
Total duration 15m 13s
Artifacts 8

test-phpunit.yml

on: pull_request
Setup PHP Version for Code Coverage
4s
Setup PHP Version for Code Coverage
Matrix: Others
Matrix: CacheLive
Matrix: DatabaseLive
Matrix: SeparateProcess
Upload coverage results to Coveralls  /  coveralls
1m 6s
Upload coverage results to Coveralls / coveralls
Fit to window
Zoom out
Zoom in

Annotations

16 warnings
Others (8.2) / Sanity Tests: /tests/system/Images/ImageMagickHandlerTest.php#L472
Took 0.5237s from 0.5000s limit to run CodeIgniter\\Images\\ImageMagickHandlerTest::testImageReorientPortrait
Others (8.2) / Sanity Tests: /tests/system/Images/ImageMagickHandlerTest.php#L453
Took 0.5668s from 0.5000s limit to run CodeIgniter\\Images\\ImageMagickHandlerTest::testImageReorientLandscape
Others (8.2) / Sanity Tests: /tests/system/CLI/ConsoleTest.php#L69
Took 0.6914s from 0.5000s limit to run CodeIgniter\\CLI\\ConsoleTest::testRun
Others (8.2) / Sanity Tests: /tests/system/Images/ImageMagickHandlerTest.php#L356
Took 1.0412s from 0.5000s limit to run CodeIgniter\\Images\\ImageMagickHandlerTest::testImageCreation
Others (8.2) / Sanity Tests: /tests/system/API/ResponseTraitTest.php#L133
Took 2.8976s from 0.5000s limit to run CodeIgniter\\API\\ResponseTraitTest::testNoFormatterJSON
DatabaseLive (8.2, SQLSRV, 8.0) / tests: /tests/system/Database/DatabaseTestCaseTest.php#L93
Took 0.7956s from 0.5000s limit to run CodeIgniter\\Database\\DatabaseTestCaseTest::testMultipleMigrationNamespaces
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Commands/Database/MigrateStatusTest.php#L77
Took 0.8136s from 0.5000s limit to run CodeIgniter\\Commands\\Database\\MigrateStatusTest::testMigrateAllWithWithTwoNamespaces
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Database/Live/ForgeTest.php#L1583
Took 0.8374s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testDropKey
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Database/Live/InsertTest.php#L53
Took 0.8669s from 0.5000s limit to run CodeIgniter\\Database\\Live\\InsertTest::testInsertBatch
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Models/InsertModelTest.php#L52
Took 0.9297s from 0.5000s limit to run CodeIgniter\\Models\\InsertModelTest::testInsertBatchSuccess
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Models/ValidationModelRuleGroupTest.php#L50
Took 0.9481s from 0.5000s limit to run CodeIgniter\\Models\\ValidationModelRuleGroupTest::testValid
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Database/Live/UpsertTest.php#L744
Took 0.9628s from 0.5000s limit to run CodeIgniter\\Database\\Live\\UpsertTest::testUpsertBatchWithQuery
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Database/Live/ForgeTest.php#L1236
Took 1.0245s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testSetKeyNames
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Database/Live/ConnectTest.php#L97
Took 1.0980s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ConnectTest::testConnectWithFailover
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Database/Live/ForgeTest.php#L1676
Took 1.3815s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testProcessIndexes
DatabaseLive (8.2, OCI8, 8.0) / tests: /tests/system/Database/Live/ForgeTest.php#L494
Took 2.8236s from 0.5000s limit to run CodeIgniter\\Database\\Live\\ForgeTest::testForeignKey

Artifacts

Produced during runtime
Name Size Digest
cache-live-tests-php-8.2-db-none Expired
113 KB
sha256:dd5b06e18378bbe2b05789e2acf181e6e6fb3db6a94a0c5dbfc87820e9bf437d
database-live-tests-php-8.2-db-MySQLi Expired
11.3 MB
sha256:f3674855f13f7754072883392292adc25932df940c4fc664b0083e7dd6f7b64f
database-live-tests-php-8.2-db-OCI8 Expired
11.3 MB
sha256:f6e5d6976913171914ce64de8b7ca5a39dc2ebe2976326056a0ea85788ba756a
database-live-tests-php-8.2-db-Postgre Expired
10.9 MB
sha256:c27abd1422a1aecdb5fe4fb9354f1464c1ebab5eb4947ec01274ef3daa7a3771
database-live-tests-php-8.2-db-SQLSRV Expired
11 MB
sha256:ff04b644e4e3b7b8a7c40d8777e9b383afb205df15beae7d3b679243d6dca204
database-live-tests-php-8.2-db-SQLite3 Expired
10.9 MB
sha256:074287d1df89de13225cdf079ab28ac138020522a72d99a0d794375d9506d564
sanity-tests-php-8.2-db-none Expired
27.7 MB
sha256:0284e98944292258b55d1d291b7823b751f4b0527d954a8d4d6569560f4a5d4b
separate-process-tests-php-8.2-db-none Expired
2.9 MB
sha256:8f327170dcfbdb49e494654885a5cb009cc410d4c23e7fba2935999afd874685