Skip to content

Commit

Permalink
Merge pull request doctrine#6065 from morozov/phpunit-10
Browse files Browse the repository at this point in the history
Update PHPUnit to 10
  • Loading branch information
morozov committed Jun 16, 2023
2 parents c2ec5e1 + c23f2ac commit d069d3d
Show file tree
Hide file tree
Showing 33 changed files with 196 additions and 105 deletions.
6 changes: 3 additions & 3 deletions ci/appveyor/mssql.sql2017.pdo_sqlsrv.appveyor.xml
Expand Up @@ -21,9 +21,9 @@
</testsuite>
</testsuites>

<coverage>
<source>
<include>
<directory suffix=".php">../../src</directory>
<directory>../../src</directory>
</include>
</coverage>
</source>
</phpunit>
6 changes: 3 additions & 3 deletions ci/appveyor/mssql.sql2017.sqlsrv.appveyor.xml
Expand Up @@ -21,9 +21,9 @@
</testsuite>
</testsuites>

<coverage>
<source>
<include>
<directory suffix=".php">../../src</directory>
<directory>../../src</directory>
</include>
</coverage>
</source>
</phpunit>
7 changes: 3 additions & 4 deletions ci/github/phpunit/ibm_db2.xml
Expand Up @@ -6,7 +6,6 @@
beStrictAboutTodoAnnotatedTests="true"
failOnRisky="true"
failOnWarning="true"
convertDeprecationsToExceptions="true"
>
<php>
<ini name="error_reporting" value="-1" />
Expand All @@ -30,9 +29,9 @@
</testsuite>
</testsuites>

<coverage>
<source>
<include>
<directory suffix=".php">../../../src</directory>
<directory>../../../src</directory>
</include>
</coverage>
</source>
</phpunit>
7 changes: 3 additions & 4 deletions ci/github/phpunit/mysqli-tls.xml
Expand Up @@ -6,7 +6,6 @@
beStrictAboutTodoAnnotatedTests="true"
failOnRisky="true"
failOnWarning="true"
convertDeprecationsToExceptions="true"
>
<php>
<ini name="error_reporting" value="-1" />
Expand All @@ -33,9 +32,9 @@
</testsuite>
</testsuites>

<coverage>
<source>
<include>
<directory suffix=".php">../../../src</directory>
<directory>../../../src</directory>
</include>
</coverage>
</source>
</phpunit>
7 changes: 3 additions & 4 deletions ci/github/phpunit/mysqli.xml
Expand Up @@ -6,7 +6,6 @@
beStrictAboutTodoAnnotatedTests="true"
failOnRisky="true"
failOnWarning="true"
convertDeprecationsToExceptions="true"
>
<php>
<ini name="error_reporting" value="-1" />
Expand All @@ -25,9 +24,9 @@
</testsuite>
</testsuites>

<coverage>
<source>
<include>
<directory suffix=".php">../../../src</directory>
<directory>../../../src</directory>
</include>
</coverage>
</source>
</phpunit>
7 changes: 3 additions & 4 deletions ci/github/phpunit/oci8.xml
Expand Up @@ -6,7 +6,6 @@
beStrictAboutTodoAnnotatedTests="true"
failOnRisky="true"
failOnWarning="true"
convertDeprecationsToExceptions="true"
>
<php>
<ini name="error_reporting" value="-1" />
Expand All @@ -31,9 +30,9 @@
</testsuite>
</testsuites>

<coverage>
<source>
<include>
<directory suffix=".php">../../../src</directory>
<directory>../../../src</directory>
</include>
</coverage>
</source>
</phpunit>
7 changes: 3 additions & 4 deletions ci/github/phpunit/pdo_mysql.xml
Expand Up @@ -6,7 +6,6 @@
beStrictAboutTodoAnnotatedTests="true"
failOnRisky="true"
failOnWarning="true"
convertDeprecationsToExceptions="true"
>
<php>
<ini name="error_reporting" value="-1" />
Expand All @@ -25,9 +24,9 @@
</testsuite>
</testsuites>

<coverage>
<source>
<include>
<directory suffix=".php">../../../src</directory>
<directory>../../../src</directory>
</include>
</coverage>
</source>
</phpunit>
7 changes: 3 additions & 4 deletions ci/github/phpunit/pdo_oci.xml
Expand Up @@ -6,7 +6,6 @@
beStrictAboutTodoAnnotatedTests="true"
failOnRisky="true"
failOnWarning="true"
convertDeprecationsToExceptions="true"
>
<php>
<ini name="error_reporting" value="-1" />
Expand All @@ -31,9 +30,9 @@
</testsuite>
</testsuites>

<coverage>
<source>
<include>
<directory suffix=".php">../../../src</directory>
<directory>../../../src</directory>
</include>
</coverage>
</source>
</phpunit>
7 changes: 3 additions & 4 deletions ci/github/phpunit/pdo_pgsql.xml
Expand Up @@ -6,7 +6,6 @@
beStrictAboutTodoAnnotatedTests="true"
failOnRisky="true"
failOnWarning="true"
convertDeprecationsToExceptions="true"
>
<php>
<ini name="error_reporting" value="-1" />
Expand All @@ -24,9 +23,9 @@
</testsuite>
</testsuites>

<coverage>
<source>
<include>
<directory suffix=".php">../../../src</directory>
<directory>../../../src</directory>
</include>
</coverage>
</source>
</phpunit>
7 changes: 3 additions & 4 deletions ci/github/phpunit/pdo_sqlite.xml
Expand Up @@ -6,7 +6,6 @@
beStrictAboutTodoAnnotatedTests="true"
failOnRisky="true"
failOnWarning="true"
convertDeprecationsToExceptions="true"
>
<php>
<ini name="error_reporting" value="-1" />
Expand All @@ -21,9 +20,9 @@
</testsuite>
</testsuites>

<coverage>
<source>
<include>
<directory suffix=".php">../../../src</directory>
<directory>../../../src</directory>
</include>
</coverage>
</source>
</phpunit>
7 changes: 3 additions & 4 deletions ci/github/phpunit/pdo_sqlsrv.xml
Expand Up @@ -6,7 +6,6 @@
beStrictAboutTodoAnnotatedTests="true"
failOnRisky="true"
failOnWarning="true"
convertDeprecationsToExceptions="true"
>
<php>
<ini name="error_reporting" value="-1" />
Expand All @@ -24,9 +23,9 @@
</testsuite>
</testsuites>

<coverage>
<source>
<include>
<directory suffix=".php">../../../src</directory>
<directory>../../../src</directory>
</include>
</coverage>
</source>
</phpunit>
7 changes: 3 additions & 4 deletions ci/github/phpunit/pgsql.xml
Expand Up @@ -6,7 +6,6 @@
beStrictAboutTodoAnnotatedTests="true"
failOnRisky="true"
failOnWarning="true"
convertDeprecationsToExceptions="true"
>
<php>
<ini name="error_reporting" value="-1" />
Expand All @@ -24,9 +23,9 @@
</testsuite>
</testsuites>

<coverage>
<source>
<include>
<directory suffix=".php">../../../src</directory>
<directory>../../../src</directory>
</include>
</coverage>
</source>
</phpunit>
7 changes: 3 additions & 4 deletions ci/github/phpunit/sqlite3.xml
Expand Up @@ -6,7 +6,6 @@
beStrictAboutTodoAnnotatedTests="true"
failOnRisky="true"
failOnWarning="true"
convertDeprecationsToExceptions="true"
>
<php>
<ini name="error_reporting" value="-1" />
Expand All @@ -21,9 +20,9 @@
</testsuite>
</testsuites>

<coverage>
<source>
<include>
<directory suffix=".php">../../../src</directory>
<directory>../../../src</directory>
</include>
</coverage>
</source>
</phpunit>
7 changes: 3 additions & 4 deletions ci/github/phpunit/sqlsrv.xml
Expand Up @@ -6,7 +6,6 @@
beStrictAboutTodoAnnotatedTests="true"
failOnRisky="true"
failOnWarning="true"
convertDeprecationsToExceptions="true"
>
<php>
<ini name="error_reporting" value="-1" />
Expand All @@ -24,9 +23,9 @@
</testsuite>
</testsuites>

<coverage>
<source>
<include>
<directory suffix=".php">../../../src</directory>
<directory>../../../src</directory>
</include>
</coverage>
</source>
</phpunit>
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -44,7 +44,7 @@
"phpstan/phpstan": "1.10.14",
"phpstan/phpstan-phpunit": "1.3.11",
"phpstan/phpstan-strict-rules": "^1.5",
"phpunit/phpunit": "9.6.7",
"phpunit/phpunit": "10.2.2",
"psalm/plugin-phpunit": "0.18.4",
"squizlabs/php_codesniffer": "3.7.2",
"symfony/cache": "^5.4|^6.0",
Expand Down
6 changes: 3 additions & 3 deletions phpunit.xml.dist
Expand Up @@ -48,9 +48,9 @@
</testsuite>
</testsuites>

<coverage>
<source>
<include>
<directory suffix=".php">src</directory>
<directory>src</directory>
</include>
</coverage>
</source>
</phpunit>
17 changes: 17 additions & 0 deletions tests/Driver/IBMDB2/DriverTest.php
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

namespace Doctrine\DBAL\Tests\Driver\IBMDB2;

use Doctrine\DBAL\Driver as DriverInterface;
use Doctrine\DBAL\Driver\IBMDB2\Driver;
use Doctrine\DBAL\Tests\Driver\AbstractDB2DriverTestCase;

class DriverTest extends AbstractDB2DriverTestCase
{
protected function createDriver(): DriverInterface
{
return new Driver();
}
}
17 changes: 17 additions & 0 deletions tests/Driver/Mysqli/DriverTest.php
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

namespace Doctrine\DBAL\Tests\Driver\Mysqli;

use Doctrine\DBAL\Driver as DriverInterface;
use Doctrine\DBAL\Driver\Mysqli\Driver;
use Doctrine\DBAL\Tests\Driver\AbstractMySQLDriverTestCase;

class DriverTest extends AbstractMySQLDriverTestCase
{
protected function createDriver(): DriverInterface
{
return new Driver();
}
}
17 changes: 17 additions & 0 deletions tests/Driver/OCI8/DriverTest.php
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

namespace Doctrine\DBAL\Tests\Driver\OCI8;

use Doctrine\DBAL\Driver as DriverInterface;
use Doctrine\DBAL\Driver\OCI8\Driver;
use Doctrine\DBAL\Tests\Driver\AbstractOracleDriverTestCase;

class DriverTest extends AbstractOracleDriverTestCase
{
protected function createDriver(): DriverInterface
{
return new Driver();
}
}
17 changes: 17 additions & 0 deletions tests/Driver/PDO/MySQL/DriverTest.php
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

namespace Doctrine\DBAL\Tests\Driver\PDO\MySQL;

use Doctrine\DBAL\Driver as DriverInterface;
use Doctrine\DBAL\Driver\PDO\MySQL\Driver;
use Doctrine\DBAL\Tests\Driver\AbstractMySQLDriverTestCase;

class DriverTest extends AbstractMySQLDriverTestCase
{
protected function createDriver(): DriverInterface
{
return new Driver();
}
}
17 changes: 17 additions & 0 deletions tests/Driver/PDO/OCI/DriverTest.php
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

namespace Doctrine\DBAL\Tests\Driver\PDO\OCI;

use Doctrine\DBAL\Driver as DriverInterface;
use Doctrine\DBAL\Driver\PDO\OCI\Driver;
use Doctrine\DBAL\Tests\Driver\AbstractOracleDriverTestCase;

class DriverTest extends AbstractOracleDriverTestCase
{
protected function createDriver(): DriverInterface
{
return new Driver();
}
}

0 comments on commit d069d3d

Please sign in to comment.