Skip to content

Commit b29c4fb

Browse files
committed
Enhancement: Use diff view
1 parent beff2a6 commit b29c4fb

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

README.md

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -54,24 +54,25 @@ You can configure the extension with the following parameters in your `phpunit.x
5454

5555
The following example configures the maximum count of slow tests to three, and the maximum duration for all tests to 250 milliseconds:
5656

57-
```xml
58-
<phpunit
59-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
60-
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
61-
bootstrap="vendor/autoload.php"
62-
>
63-
<extensions>
64-
<bootstrap class="Ergebnis\PHPUnit\SlowTestDetector\Extension">
65-
<parameter name="maximum-count" value="3"/>
66-
<parameter name="maximum-duration" value="250"/>
67-
</boostrap>
68-
</extensions>
69-
<testsuites>
70-
<testsuite name="unit">
71-
<directory>test/Unit/</directory>
72-
</testsuite>
73-
</testsuites>
74-
</phpunit>
57+
```diff
58+
<phpunit
59+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
60+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
61+
bootstrap="vendor/autoload.php"
62+
>
63+
<extensions>
64+
- <bootstrap class="Ergebnis\PHPUnit\SlowTestDetector\Extension"/>
65+
+ <bootstrap class="Ergebnis\PHPUnit\SlowTestDetector\Extension">
66+
+ <parameter name="maximum-count" value="3"/>
67+
+ <parameter name="maximum-duration" value="250"/>
68+
+ </boostrap>
69+
</extensions>
70+
<testsuites>
71+
<testsuite name="unit">
72+
<directory>test/Unit/</directory>
73+
</testsuite>
74+
</testsuites>
75+
</phpunit>
7576
```
7677

7778
#### Configuring the maximum duration per test case

0 commit comments

Comments
 (0)