Skip to content

Commit 83d7fee

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: Update deprecated PHPUnit schema & doc links
2 parents 359136e + f473995 commit 83d7fee

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

create_framework/unit_testing.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,25 @@ using `PHPUnit`_. Create a PHPUnit configuration file in
1313

1414
.. code-block:: xml
1515
16-
<?xml version="1.0" encoding="UTF-8" ?>
16+
<?xml version="1.0" encoding="UTF-8"?>
1717
<phpunit
1818
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/5.1/phpunit.xsd"
19+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
2020
backupGlobals="false"
2121
colors="true"
2222
bootstrap="vendor/autoload.php"
2323
>
24+
<coverage processUncoveredFiles="true">
25+
<include>
26+
<directory suffix=".php">./src</directory>
27+
</include>
28+
</coverage>
29+
2430
<testsuites>
2531
<testsuite name="Test Suite">
2632
<directory>./tests</directory>
2733
</testsuite>
2834
</testsuites>
29-
30-
<filter>
31-
<whitelist processUncoveredFilesFromWhitelist="true">
32-
<directory suffix=".php">./src</directory>
33-
</whitelist>
34-
</filter>
3535
</phpunit>
3636
3737
This configuration defines sensible defaults for most PHPUnit settings; more
@@ -215,6 +215,6 @@ Symfony code.
215215
Now that we are confident (again) about the code we have written, we can
216216
safely think about the next batch of features we want to add to our framework.
217217

218-
.. _`PHPUnit`: https://phpunit.de/manual/current/en/index.html
219-
.. _`test doubles`: https://phpunit.de/manual/current/en/test-doubles.html
218+
.. _`PHPUnit`: https://phpunit.readthedocs.io/en/stable/
219+
.. _`test doubles`: https://phpunit.readthedocs.io/en/stable/test-doubles.html
220220
.. _`XDebug`: https://xdebug.org/

0 commit comments

Comments
 (0)