Skip to content

Commit 1850afe

Browse files
committed
Configure PHPUnit to fail on skipped, output during tests, and random execution order
1 parent c877cd9 commit 1850afe

File tree

20 files changed

+145
-98
lines changed

20 files changed

+145
-98
lines changed

src/Autocomplete/phpunit.xml.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
bootstrap="vendor/autoload.php"
88
failOnRisky="true"
99
failOnWarning="true"
10+
beStrictAboutOutputDuringTests="true"
11+
executionOrder="random"
1012
>
1113
<coverage processUncoveredFiles="true">
1214
<include>

src/Chartjs/phpunit.xml.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
bootstrap="vendor/autoload.php"
88
failOnRisky="true"
99
failOnWarning="true"
10+
beStrictAboutOutputDuringTests="true"
11+
executionOrder="random"
1012
>
1113
<coverage>
1214
<include>

src/Cropperjs/phpunit.xml.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
bootstrap="vendor/autoload.php"
88
failOnRisky="true"
99
failOnWarning="true"
10+
beStrictAboutOutputDuringTests="true"
11+
executionOrder="random"
1012
>
1113
<coverage>
1214
<include>

src/Dropzone/phpunit.xml.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
bootstrap="vendor/autoload.php"
88
failOnRisky="true"
99
failOnWarning="true"
10+
beStrictAboutOutputDuringTests="true"
11+
executionOrder="random"
1012
>
1113
<coverage>
1214
<include>

src/Icons/phpunit.xml.dist

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
66
colors="true"
7-
bootstrap="vendor/autoload.php"
7+
bootstrap="tests/bootstrap.php"
88
failOnRisky="true"
99
failOnWarning="true"
10+
beStrictAboutOutputDuringTests="true"
11+
executionOrder="random"
1012
>
1113
<coverage processUncoveredFiles="true">
1214
<include>

src/LazyImage/phpunit.xml.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
bootstrap="vendor/autoload.php"
88
failOnRisky="true"
99
failOnWarning="true"
10+
beStrictAboutOutputDuringTests="true"
11+
executionOrder="random"
1012
>
1113
<coverage>
1214
<include>

src/LiveComponent/phpunit.xml.dist

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
3-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
5-
colors="true"
6-
bootstrap="vendor/autoload.php"
7-
failOnRisky="true"
8-
failOnWarning="true"
3+
<phpunit
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
6+
colors="true"
7+
bootstrap="vendor/autoload.php"
8+
failOnRisky="true"
9+
failOnWarning="true"
10+
beStrictAboutOutputDuringTests="true"
11+
executionOrder="random"
912
>
1013
<coverage processUncoveredFiles="true">
1114
<include>

src/Map/phpunit.xml.dist

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
3-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
5-
colors="true"
6-
bootstrap="vendor/autoload.php"
7-
failOnRisky="true"
8-
failOnWarning="true"
3+
<phpunit
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
6+
colors="true"
7+
bootstrap="vendor/autoload.php"
8+
failOnRisky="true"
9+
failOnWarning="true"
10+
beStrictAboutOutputDuringTests="true"
11+
executionOrder="random"
912
>
1013
<coverage processUncoveredFiles="true">
1114
<include>
1215
<directory suffix=".php">./src</directory>
1316
</include>
1417
</coverage>
15-
18+
1619
<php>
1720
<ini name="error_reporting" value="-1"/>
1821
<server name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0&amp;max[direct]=0"/>

src/Map/src/Bridge/Google/phpunit.xml.dist

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
3-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
5-
colors="true"
6-
bootstrap="vendor/autoload.php"
7-
failOnRisky="true"
8-
failOnWarning="true"
3+
<phpunit
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
6+
colors="true"
7+
bootstrap="vendor/autoload.php"
8+
failOnRisky="true"
9+
failOnWarning="true"
10+
beStrictAboutOutputDuringTests="true"
11+
executionOrder="random"
912
>
1013
<coverage processUncoveredFiles="true">
1114
<include>

src/Map/src/Bridge/Leaflet/phpunit.xml.dist

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html -->
3-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
5-
colors="true"
6-
bootstrap="vendor/autoload.php"
7-
failOnRisky="true"
8-
failOnWarning="true"
3+
<phpunit
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:noNamespaceSchemaLocation="vendor/bin/.phpunit/phpunit.xsd"
6+
colors="true"
7+
bootstrap="vendor/autoload.php"
8+
failOnRisky="true"
9+
failOnWarning="true"
10+
beStrictAboutOutputDuringTests="true"
11+
executionOrder="random"
912
>
1013
<coverage processUncoveredFiles="true">
1114
<include>

0 commit comments

Comments
 (0)