Skip to content

Commit 6963cb4

Browse files
committed
Sync phpunit.xml.dist with Drupal 8.5.x
1 parent 4b333f6 commit 6963cb4

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

Diff for: phpunit.xml.dist

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3+
<!-- TODO set checkForUnintentionallyCoveredCode="true" once https://www.drupal.org/node/2626832 is resolved. -->
34
<!-- PHPUnit expects functional tests to be run with either a privileged user
45
or your current system user. See core/tests/README.md and
56
https://www.drupal.org/node/2116263 for details.
67
-->
78
<phpunit bootstrap="web/core/tests/bootstrap.php" colors="true"
89
beStrictAboutTestsThatDoNotTestAnything="true"
910
beStrictAboutOutputDuringTests="true"
10-
beStrictAboutChangesToGlobalState="true"
11-
checkForUnintentionallyCoveredCode="false">
11+
beStrictAboutChangesToGlobalState="true">
1212
<!-- TODO set printerClass="\Drupal\Tests\Listeners\HtmlOutputPrinter" once
1313
https://youtrack.jetbrains.com/issue/WI-24808 is resolved. Drupal provides a
1414
result printer that links to the html output results for functional tests.
1515
Unfortunately, this breaks the output of PHPStorm's PHPUnit runner. However, if
1616
using the command line you can add
17-
- -printerClass="\Drupal\Tests\Listeners\HtmlOutputPrinter" to use it (note
18-
there should be no spaces between the hyphens).
17+
- -printer="\Drupal\Tests\Listeners\HtmlOutputPrinter" to use it (note there
18+
should be no spaces between the hyphens).
1919
-->
2020
<php>
2121
<!-- Set error reporting to E_ALL. -->
@@ -28,6 +28,12 @@
2828
<env name="SIMPLETEST_DB" value=""/>
2929
<!-- Example BROWSERTEST_OUTPUT_DIRECTORY value: /path/to/webroot/sites/simpletest/browser_output -->
3030
<env name="BROWSERTEST_OUTPUT_DIRECTORY" value=""/>
31+
<!-- To disable deprecation testing uncomment the next line. -->
32+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="weak_vendors"/>
33+
<!-- Example for changing the driver class for mink tests MINK_DRIVER_CLASS value: 'Drupal\FunctionalJavascriptTests\DrupalSelenium2Driver' -->
34+
<!-- Example for changing the driver args to mink tests MINK_DRIVER_ARGS value: '["http://127.0.0.1:8510"]' -->
35+
<!-- Example for changing the driver args to phantomjs tests MINK_DRIVER_ARGS_PHANTOMJS value: '["http://127.0.0.1:8510"]' -->
36+
<!-- Example for changing the driver args to webdriver tests MINK_DRIVER_ARGS_WEBDRIVER value: '["firefox", null, "http://localhost:4444/wd/hub"]' -->
3137
</php>
3238
<testsuites>
3339
<testsuite name="unit">
@@ -44,7 +50,10 @@
4450
</testsuite>
4551
</testsuites>
4652
<listeners>
47-
<listener class="\Drupal\Tests\Listeners\DrupalStandardsListener">
53+
<listener class="\Drupal\Tests\Listeners\DrupalListener">
54+
</listener>
55+
<!-- The Symfony deprecation listener has to come after the Drupal listener -->
56+
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
4857
</listener>
4958
</listeners>
5059
<!-- Filter for coverage reports. -->

0 commit comments

Comments
 (0)