Skip to content

Commit 3364294

Browse files
authored
minor #293 [ci] update PHPUnit config to latest schema version
1 parent 534a242 commit 3364294

18 files changed

+41
-36
lines changed

phpunit.xml.dist

+26-21
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,50 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
32
<phpunit
4-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
6-
backupGlobals="false"
7-
colors="true"
8-
bootstrap="vendor/autoload.php"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd"
5+
bootstrap="vendor/autoload.php"
6+
cacheResultFile=".phpunit.cache/test-results"
7+
executionOrder="depends,defects"
8+
beStrictAboutCoversAnnotation="true"
9+
beStrictAboutOutputDuringTests="true"
10+
beStrictAboutTodoAnnotatedTests="true"
11+
convertDeprecationsToExceptions="true"
12+
failOnRisky="true"
13+
failOnWarning="true"
14+
verbose="true"
15+
colors="true"
916
>
10-
1117
<php>
1218
<ini name="error_reporting" value="-1"/>
1319
<server name="SHELL_VERBOSITY" value="-1"/>
1420
<server name="SYMFONY_PHPUNIT_REMOVE" value=""/>
1521
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0"/>
1622
</php>
1723

18-
<coverage processUncoveredFiles="true">
19-
<include>
20-
<directory suffix=".php">./src/</directory>
21-
</include>
22-
<exclude>
23-
<directory>./src/Resources</directory>
24-
<directory>./tests</directory>
25-
<directory>./vendor</directory>
26-
</exclude>
27-
</coverage>
28-
2924
<testsuites>
3025
<testsuite name="all">
3126
<directory>./tests</directory>
3227
</testsuite>
3328
<testsuite name="unit">
34-
<directory>./tests/UnitTests</directory>
29+
<directory>./tests/Unit</directory>
3530
</testsuite>
3631
<testsuite name="functional">
37-
<directory>./tests/FunctionalTests</directory>
32+
<directory>./tests/Functional</directory>
3833
</testsuite>
3934
<testsuite name="integration">
40-
<directory>./tests/IntegrationTests</directory>
35+
<directory>./tests/Integration</directory>
4136
</testsuite>
4237
</testsuites>
38+
39+
<coverage
40+
cacheDirectory=".phpunit.cache/code-coverage"
41+
processUncoveredFiles="true"
42+
>
43+
<include>
44+
<directory suffix=".php">src</directory>
45+
</include>
46+
</coverage>
47+
4348
<listeners>
4449
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
4550
</listeners>

tests/IntegrationTests/ResetPasswordInterfaceAutowireTest.php renamed to tests/Integration/ResetPasswordInterfaceAutowireTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* file that was distributed with this source code.
88
*/
99

10-
namespace SymfonyCasts\Bundle\ResetPassword\Tests\IntegrationTests;
10+
namespace SymfonyCasts\Bundle\ResetPassword\Tests\Integration;
1111

1212
use PHPUnit\Framework\TestCase;
1313
use Symfony\Component\DependencyInjection\ContainerBuilder;

tests/IntegrationTests/ResetPasswordServiceDefinitionTest.php renamed to tests/Integration/ResetPasswordServiceDefinitionTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* file that was distributed with this source code.
88
*/
99

10-
namespace SymfonyCasts\Bundle\ResetPassword\Tests\IntegrationTests;
10+
namespace SymfonyCasts\Bundle\ResetPassword\Tests\Integration;
1111

1212
use PHPUnit\Framework\TestCase;
1313
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;

tests/UnitTests/Command/ResetPasswordRemoveExpiredCommandTest.php renamed to tests/Unit/Command/ResetPasswordRemoveExpiredCommandTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* file that was distributed with this source code.
88
*/
99

10-
namespace SymfonyCasts\Bundle\ResetPassword\Tests\UnitTests\Command;
10+
namespace SymfonyCasts\Bundle\ResetPassword\Tests\Unit\Command;
1111

1212
use PHPUnit\Framework\TestCase;
1313
use Symfony\Component\Console\Input\InputInterface;

tests/UnitTests/Controller/ResetPasswordControllerTraitTest.php renamed to tests/Unit/Controller/ResetPasswordControllerTraitTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* file that was distributed with this source code.
88
*/
99

10-
namespace SymfonyCasts\Bundle\ResetPassword\Tests\UnitTests\Controller;
10+
namespace SymfonyCasts\Bundle\ResetPassword\Tests\Unit\Controller;
1111

1212
use PHPUnit\Framework\MockObject\MockObject;
1313
use PHPUnit\Framework\TestCase;

tests/UnitTests/Exception/ResetPasswordExceptionTest.php renamed to tests/Unit/Exception/ResetPasswordExceptionTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* file that was distributed with this source code.
88
*/
99

10-
namespace SymfonyCasts\Bundle\ResetPassword\Tests\UnitTests\Exception;
10+
namespace SymfonyCasts\Bundle\ResetPassword\Tests\Unit\Exception;
1111

1212
use PHPUnit\Framework\TestCase;
1313
use SymfonyCasts\Bundle\ResetPassword\Exception\ExpiredResetPasswordTokenException;

tests/UnitTests/Exception/TooManyPasswordRequestsExceptionTest.php renamed to tests/Unit/Exception/TooManyPasswordRequestsExceptionTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* file that was distributed with this source code.
88
*/
99

10-
namespace SymfonyCasts\Bundle\ResetPassword\Tests\UnitTests\Exception;
10+
namespace SymfonyCasts\Bundle\ResetPassword\Tests\Unit\Exception;
1111

1212
use PHPUnit\Framework\TestCase;
1313
use SymfonyCasts\Bundle\ResetPassword\Exception\TooManyPasswordRequestsException;

tests/UnitTests/Generator/ResetPasswordRandomGeneratorTest.php renamed to tests/Unit/Generator/ResetPasswordRandomGeneratorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* file that was distributed with this source code.
88
*/
99

10-
namespace SymfonyCasts\Bundle\ResetPassword\Tests\UnitTests\Generator;
10+
namespace SymfonyCasts\Bundle\ResetPassword\Tests\Unit\Generator;
1111

1212
use PHPUnit\Framework\TestCase;
1313
use SymfonyCasts\Bundle\ResetPassword\Generator\ResetPasswordRandomGenerator;

tests/UnitTests/Generator/ResetPasswordTokenGeneratorTest.php renamed to tests/Unit/Generator/ResetPasswordTokenGeneratorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* file that was distributed with this source code.
88
*/
99

10-
namespace SymfonyCasts\Bundle\ResetPassword\Tests\UnitTests\Generator;
10+
namespace SymfonyCasts\Bundle\ResetPassword\Tests\Unit\Generator;
1111

1212
use PHPUnit\Framework\MockObject\MockObject;
1313
use PHPUnit\Framework\TestCase;

tests/UnitTests/Model/ResetPasswordRequestTraitTest.php renamed to tests/Unit/Model/ResetPasswordRequestTraitTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* file that was distributed with this source code.
88
*/
99

10-
namespace SymfonyCasts\Bundle\ResetPassword\Tests\UnitTests\Model;
10+
namespace SymfonyCasts\Bundle\ResetPassword\Tests\Unit\Model;
1111

1212
use PHPUnit\Framework\TestCase;
1313
use SymfonyCasts\Bundle\ResetPassword\Model\ResetPasswordRequestInterface;

tests/UnitTests/Model/ResetPasswordTokenComponentsTest.php renamed to tests/Unit/Model/ResetPasswordTokenComponentsTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* file that was distributed with this source code.
88
*/
99

10-
namespace SymfonyCasts\Bundle\ResetPassword\Tests\UnitTests\Model;
10+
namespace SymfonyCasts\Bundle\ResetPassword\Tests\Unit\Model;
1111

1212
use PHPUnit\Framework\TestCase;
1313
use SymfonyCasts\Bundle\ResetPassword\Model\ResetPasswordTokenComponents;

tests/UnitTests/Model/ResetPasswordTokenTest.php renamed to tests/Unit/Model/ResetPasswordTokenTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* file that was distributed with this source code.
88
*/
99

10-
namespace SymfonyCasts\Bundle\ResetPassword\Tests\UnitTests\Model;
10+
namespace SymfonyCasts\Bundle\ResetPassword\Tests\Unit\Model;
1111

1212
use PHPUnit\Framework\TestCase;
1313
use SymfonyCasts\Bundle\ResetPassword\Model\ResetPasswordToken;

tests/UnitTests/Persistence/FakeResetPasswordInternalRepositoryTest.php renamed to tests/Unit/Persistence/FakeResetPasswordInternalRepositoryTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* file that was distributed with this source code.
88
*/
99

10-
namespace SymfonyCasts\Bundle\ResetPassword\Tests\UnitTests\Persistence;
10+
namespace SymfonyCasts\Bundle\ResetPassword\Tests\Unit\Persistence;
1111

1212
use PHPUnit\Framework\TestCase;
1313
use SymfonyCasts\Bundle\ResetPassword\Exception\FakeRepositoryException;

tests/UnitTests/Persistence/ResetPasswordRequestRepositoryTraitTest.php renamed to tests/Unit/Persistence/ResetPasswordRequestRepositoryTraitTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* file that was distributed with this source code.
88
*/
99

10-
namespace SymfonyCasts\Bundle\ResetPassword\Tests\UnitTests\Persistence;
10+
namespace SymfonyCasts\Bundle\ResetPassword\Tests\Unit\Persistence;
1111

1212
use PHPUnit\Framework\TestCase;
1313
use SymfonyCasts\Bundle\ResetPassword\Model\ResetPasswordRequestInterface;

tests/UnitTests/ResetPasswordHelperTest.php renamed to tests/Unit/ResetPasswordHelperTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* file that was distributed with this source code.
88
*/
99

10-
namespace SymfonyCasts\Bundle\ResetPassword\Tests\UnitTests;
10+
namespace SymfonyCasts\Bundle\ResetPassword\Tests\Unit;
1111

1212
use PHPUnit\Framework\MockObject\MockObject;
1313
use PHPUnit\Framework\TestCase;

tests/UnitTests/Util/ResetPasswordCleanerTest.php renamed to tests/Unit/Util/ResetPasswordCleanerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* file that was distributed with this source code.
88
*/
99

10-
namespace SymfonyCasts\Bundle\ResetPassword\Tests\UnitTests\Util;
10+
namespace SymfonyCasts\Bundle\ResetPassword\Tests\Unit\Util;
1111

1212
use PHPUnit\Framework\MockObject\MockObject;
1313
use PHPUnit\Framework\TestCase;

0 commit comments

Comments
 (0)