Skip to content

Commit 365f4c5

Browse files
jessinthecloudjaviereguiluz
authored andcommitted
Update deprecated PHPUnit schema & doc links
PHPUnit gives "Warning: Your XML configuration validates against a deprecated schema." Running the suggested `./vendor/bin/phpunit --migrate-configuration` updated phpunit.xml.dist and fixed the warning. The resulting XML is the update here. The links to PHPUnit are also outdated; updated to link to the current stable (English) release
1 parent fcbccbf commit 365f4c5

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

create_framework/unit_testing.rst

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,28 @@ 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
37+
3738
This configuration defines sensible defaults for most PHPUnit settings; more
3839
interesting, the autoloader is used to bootstrap the tests, and tests will be
3940
stored under the ``example.com/tests/`` directory.
@@ -215,6 +216,6 @@ Symfony code.
215216
Now that we are confident (again) about the code we have written, we can
216217
safely think about the next batch of features we want to add to our framework.
217218

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

0 commit comments

Comments
 (0)