1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
Description: Update tests to work with PHPUnit 12
Updated with `phpunit --migrate-configuration`
Origin: self
Author: Fab Stz <fabstz-it@yahoo.fr>
Last-Update: 2025-08-26
--- a/tests/phpunit.xml
+++ b/tests/phpunit.xml
@@ -1,10 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./Bootstrap.php" colors="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" beStrictAboutTestsThatDoNotTestAnything="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
- <coverage>
- <include>
- <directory suffix=".php">../system/</directory>
- </include>
- </coverage>
+<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./Bootstrap.php" colors="true" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" beStrictAboutTestsThatDoNotTestAnything="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/12.3/phpunit.xsd" cacheDirectory=".phpunit.cache">
<testsuites>
<testsuite name="CodeIgniter Core Test Suite">
<directory suffix="test.php">./codeigniter/core</directory>
@@ -12,4 +7,9 @@
<directory suffix="test.php">./codeigniter/libraries</directory>
</testsuite>
</testsuites>
+ <source>
+ <include>
+ <directory suffix=".php">../system/</directory>
+ </include>
+ </source>
</phpunit>
|