Skip to content

Commit

Permalink
Add support to Phpunit 10 (#132)
Browse files Browse the repository at this point in the history
* renames only abstract GenericTest class to GenericTestCase

* apply --migration-configuration on file

* old PHPUnit 9 configuration version (before migration)
  • Loading branch information
llaville authored Feb 3, 2023
1 parent 3acc51d commit f229ade
Show file tree
Hide file tree
Showing 114 changed files with 635 additions and 246 deletions.
357 changes: 357 additions & 0 deletions phpunit-9.xml

Large diffs are not rendered by default.

78 changes: 55 additions & 23 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="config/bootstrap.php"
colors="true"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnRisky="false"
stopOnSkipped="false"
verbose="true"
beStrictAboutTestsThatDoNotTestAnything="false"
processIsolation="false"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false"
>
<filter>
<whitelist>
<coverage>
<include>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
</include>
</coverage>
<testsuites>
<testsuite name="bcmath">
<directory prefix="Bcmath" suffix="ExtensionTest.php">tests/Reference/Extension/PhpBundle</directory>
Expand Down Expand Up @@ -71,7 +72,9 @@
<directory prefix="Hash" suffix="ExtensionTest.php">tests/Reference/Extension/PhpBundle</directory>
</testsuite>
<testsuite name="mhash">
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Mhash" suffix="ExtensionTest.php">tests/Reference/Extension/PhpBundle</directory>
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Mhash" suffix="ExtensionTest.php">
tests/Reference/Extension/PhpBundle
</directory>
</testsuite>
<testsuite name="iconv">
<directory prefix="Iconv" suffix="ExtensionTest.php">tests/Reference/Extension/PhpBundle</directory>
Expand All @@ -95,7 +98,8 @@
<directory prefix="Mbstring" suffix="ExtensionTest.php">tests/Reference/Extension/PhpBundle</directory>
</testsuite>
<testsuite name="mysql">
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Mysql" suffix="ExtensionTest.php">tests/</directory>
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Mysql" suffix="ExtensionTest.php">tests/
</directory>
<directory prefix="Mysqli" suffix="ExtensionTest.php">tests/Reference/Extension/PhpBundle</directory>
</testsuite>
<testsuite name="mysqli">
Expand All @@ -117,7 +121,9 @@
<directory prefix="Pcntl" suffix="ExtensionTest.php">tests/Reference/Extension/PhpBundle</directory>
</testsuite>
<testsuite name="ereg">
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Ereg" suffix="ExtensionTest.php">tests/Reference/Extension/PhpBundle</directory>
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Ereg" suffix="ExtensionTest.php">
tests/Reference/Extension/PhpBundle
</directory>
</testsuite>
<testsuite name="pcre">
<directory prefix="Pcre" suffix="ExtensionTest.php">tests/Reference/Extension/PhpBundle</directory>
Expand Down Expand Up @@ -207,7 +213,9 @@
<directory prefix="Apcu" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
</testsuite>
<testsuite name="apc">
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Apc" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Apc" suffix="ExtensionTest.php">
tests/Reference/Extension/PhpPecl
</directory>
</testsuite>
<testsuite name="ast">
<directory prefix="Ast" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
Expand All @@ -219,10 +227,14 @@
<directory prefix="Geoip" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
</testsuite>
<testsuite name="haru">
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Haru" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Haru" suffix="ExtensionTest.php">
tests/Reference/Extension/PhpPecl
</directory>
</testsuite>
<testsuite name="htscanner">
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Htscanner" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Htscanner" suffix="ExtensionTest.php">
tests/Reference/Extension/PhpPecl
</directory>
</testsuite>
<testsuite name="http">
<directory prefix="Http" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
Expand All @@ -234,13 +246,17 @@
<directory prefix="Imagick" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
</testsuite>
<testsuite name="inclued">
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Inclued" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Inclued" suffix="ExtensionTest.php">
tests/Reference/Extension/PhpPecl
</directory>
</testsuite>
<testsuite name="jsmin">
<directory prefix="Jsmin" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
</testsuite>
<testsuite name="libevent">
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Libevent" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Libevent" suffix="ExtensionTest.php">
tests/Reference/Extension/PhpPecl
</directory>
</testsuite>
<testsuite name="lzf">
<directory prefix="Lzf" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
Expand All @@ -258,7 +274,9 @@
<directory prefix="Memcached" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
</testsuite>
<testsuite name="mongo">
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Mongo" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Mongo" suffix="ExtensionTest.php">
tests/Reference/Extension/PhpPecl
</directory>
</testsuite>
<testsuite name="msgpack">
<directory prefix="Msgpack" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
Expand All @@ -270,10 +288,14 @@
<directory prefix="Oauth" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
</testsuite>
<testsuite name="pdflib">
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Pdflib" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Pdflib" suffix="ExtensionTest.php">
tests/Reference/Extension/PhpPecl
</directory>
</testsuite>
<testsuite name="pthreads">
<directory phpVersion="8.0.0" phpVersionOperator="lt" prefix="Pthreads" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
<directory phpVersion="8.0.0" phpVersionOperator="lt" prefix="Pthreads" suffix="ExtensionTest.php">
tests/Reference/Extension/PhpPecl
</directory>
</testsuite>
<testsuite name="raphf">
<directory prefix="Raphf" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
Expand All @@ -291,16 +313,22 @@
<directory prefix="Redis" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
</testsuite>
<testsuite name="riak">
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Riak" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Riak" suffix="ExtensionTest.php">
tests/Reference/Extension/PhpPecl
</directory>
</testsuite>
<testsuite name="solr">
<directory prefix="Solr" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
</testsuite>
<testsuite name="sphinx">
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Sphinx" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
<directory phpVersion="7.0.0" phpVersionOperator="lt" prefix="Sphinx" suffix="ExtensionTest.php">
tests/Reference/Extension/PhpPecl
</directory>
</testsuite>
<testsuite name="sqlite">
<directory phpVersion="5.4.0" phpVersionOperator="lt" prefix="Sqlite" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
<directory phpVersion="5.4.0" phpVersionOperator="lt" prefix="Sqlite" suffix="ExtensionTest.php">
tests/Reference/Extension/PhpPecl
</directory>
</testsuite>
<testsuite name="ssh2">
<directory prefix="Ssh2" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
Expand All @@ -327,7 +355,9 @@
<directory prefix="Varnish" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
</testsuite>
<testsuite name="wddx">
<directory phpVersion="7.4.0" phpVersionOperator="lt" prefix="Wddx" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
<directory phpVersion="7.4.0" phpVersionOperator="lt" prefix="Wddx" suffix="ExtensionTest.php">
tests/Reference/Extension/PhpPecl
</directory>
</testsuite>
<testsuite name="xcache">
<directory prefix="Xcache" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
Expand All @@ -345,7 +375,9 @@
<directory prefix="Xmldiff" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
</testsuite>
<testsuite name="xmlrpc">
<directory phpVersion="8.0.0" phpVersionOperator="lt" prefix="Xmlrpc" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
<directory phpVersion="8.0.0" phpVersionOperator="lt" prefix="Xmlrpc" suffix="ExtensionTest.php">
tests/Reference/Extension/PhpPecl
</directory>
</testsuite>
<testsuite name="yac">
<directory prefix="Yac" suffix="ExtensionTest.php">tests/Reference/Extension/PhpPecl</directory>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
namespace Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Bcmath;

use Bartlett\CompatInfoDb\Tests\Reference\GenericTest;
use Bartlett\CompatInfoDb\Tests\Reference\GenericTestCase;

/**
* Unit tests for PHP_CompatInfo_Db, bcmath extension Reference
Expand All @@ -17,6 +17,6 @@
* @author Laurent Laville
* @author Remi Collet
*/
class BcmathExtensionTest extends GenericTest
class BcmathExtensionTest extends GenericTestCase
{
}
4 changes: 2 additions & 2 deletions tests/Reference/Extension/PhpBundle/Bz2/Bz2ExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
namespace Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Bz2;

use Bartlett\CompatInfoDb\Tests\Reference\GenericTest;
use Bartlett\CompatInfoDb\Tests\Reference\GenericTestCase;

/**
* Unit tests for PHP_CompatInfo_Db, bz2 extension Reference
Expand All @@ -17,6 +17,6 @@
* @author Laurent Laville
* @author Remi Collet
*/
class Bz2ExtensionTest extends GenericTest
class Bz2ExtensionTest extends GenericTestCase
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
namespace Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Calendar;

use Bartlett\CompatInfoDb\Tests\Reference\GenericTest;
use Bartlett\CompatInfoDb\Tests\Reference\GenericTestCase;

/**
* Unit tests for PHP_CompatInfo_Db, calendar extension Reference
Expand All @@ -17,6 +17,6 @@
* @author Laurent Laville
* @author Remi Collet
*/
class CalendarExtensionTest extends GenericTest
class CalendarExtensionTest extends GenericTestCase
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
namespace Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Core;

use Bartlett\CompatInfoDb\Tests\Reference\GenericTest;
use Bartlett\CompatInfoDb\Tests\Reference\GenericTestCase;

/**
* Unit tests for PHP_CompatInfo_Db, core extension Reference
Expand All @@ -17,7 +17,7 @@
* @author Laurent Laville
* @author Remi Collet
*/
class CoreExtensionTest extends GenericTest
class CoreExtensionTest extends GenericTestCase
{
/**
* Sets up the shared fixture.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
namespace Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Ctype;

use Bartlett\CompatInfoDb\Tests\Reference\GenericTest;
use Bartlett\CompatInfoDb\Tests\Reference\GenericTestCase;

/**
* Unit tests for PHP_CompatInfo_Db, ctype extension Reference
Expand All @@ -17,6 +17,6 @@
* @author Laurent Laville
* @author Remi Collet
*/
class CtypeExtensionTest extends GenericTest
class CtypeExtensionTest extends GenericTestCase
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
namespace Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Curl;

use Bartlett\CompatInfoDb\Tests\Reference\GenericTest;
use Bartlett\CompatInfoDb\Tests\Reference\GenericTestCase;

/**
* Unit tests for PHP_CompatInfo_Db, curl extension Reference
Expand All @@ -17,7 +17,7 @@
* @author Laurent Laville
* @author Remi Collet
*/
class CurlExtensionTest extends GenericTest
class CurlExtensionTest extends GenericTestCase
{
/**
* Sets up the shared fixture.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
namespace Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Date;

use Bartlett\CompatInfoDb\Tests\Reference\GenericTest;
use Bartlett\CompatInfoDb\Tests\Reference\GenericTestCase;

/**
* Unit tests for PHP_CompatInfo_Db, date extension Reference
Expand All @@ -17,6 +17,6 @@
* @author Laurent Laville
* @author Remi Collet
*/
class DateExtensionTest extends GenericTest
class DateExtensionTest extends GenericTestCase
{
}
4 changes: 2 additions & 2 deletions tests/Reference/Extension/PhpBundle/Dom/DomExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
namespace Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Dom;

use Bartlett\CompatInfoDb\Tests\Reference\GenericTest;
use Bartlett\CompatInfoDb\Tests\Reference\GenericTestCase;

/**
* Unit tests for PHP_CompatInfo_Db, dom extension Reference
Expand All @@ -17,6 +17,6 @@
* @author Laurent Laville
* @author Remi Collet
*/
class DomExtensionTest extends GenericTest
class DomExtensionTest extends GenericTestCase
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
namespace Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Enchant;

use Bartlett\CompatInfoDb\Tests\Reference\GenericTest;
use Bartlett\CompatInfoDb\Tests\Reference\GenericTestCase;

/**
* Unit tests for PHP_CompatInfo_Db, enchant extension Reference
Expand All @@ -17,7 +17,7 @@
* @author Laurent Laville
* @author Remi Collet
*/
class EnchantExtensionTest extends GenericTest
class EnchantExtensionTest extends GenericTestCase
{
/**
* Sets up the shared fixture.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
namespace Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Exif;

use Bartlett\CompatInfoDb\Tests\Reference\GenericTest;
use Bartlett\CompatInfoDb\Tests\Reference\GenericTestCase;

/**
* Unit tests for PHP_CompatInfo_Db, exif extension Reference
Expand All @@ -17,6 +17,6 @@
* @author Laurent Laville
* @author Remi Collet
*/
class ExifExtensionTest extends GenericTest
class ExifExtensionTest extends GenericTestCase
{
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
namespace Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Fileinfo;

use Bartlett\CompatInfoDb\Tests\Reference\GenericTest;
use Bartlett\CompatInfoDb\Tests\Reference\GenericTestCase;

use Exception;

Expand All @@ -19,7 +19,7 @@
* @author Laurent Laville
* @author Remi Collet
*/
class FileinfoExtensionTest extends GenericTest
class FileinfoExtensionTest extends GenericTestCase
{
/**
* Sets up the shared fixture.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
namespace Bartlett\CompatInfoDb\Tests\Reference\Extension\PhpBundle\Filter;

use Bartlett\CompatInfoDb\Tests\Reference\GenericTest;
use Bartlett\CompatInfoDb\Tests\Reference\GenericTestCase;

/**
* Unit tests for PHP_CompatInfo_Db, filter extension Reference
Expand All @@ -17,7 +17,7 @@
* @author Laurent Laville
* @author Remi Collet
*/
class FilterExtensionTest extends GenericTest
class FilterExtensionTest extends GenericTestCase
{
/**
* Sets up the shared fixture.
Expand Down
Loading

0 comments on commit f229ade

Please sign in to comment.