Skip to content

Commit fbda174

Browse files
Improve tests config
1 parent 8d57fd9 commit fbda174

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

build.xml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,10 @@
2929

3030
<target name="phpunit" depends="symlink-cs" description="Run unit tests with PHPUnit">
3131
<exec executable="${phpunit.bin}" failonerror="true" >
32-
<arg value="--verbose"/>
33-
<arg value="--filter=SymfonyCustom"/>
34-
<arg value="${phpcs.dir}/tests/AllTests.php"/>
32+
<arg value="--testsuite=SymfonyCustom"/>
3533
</exec>
3634
<exec executable="${phpunit.bin}" failonerror="true" >
37-
<arg value="--verbose"/>
38-
<arg value="TwigCS"/>
35+
<arg value="--testsuite=TwigCS"/>
3936
</exec>
4037
</target>
4138

phpunit.xml.dist

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@
1010
stopOnFailure="false"
1111
bootstrap="./bootstrap.php"
1212
>
13-
<filter>
14-
<whitelist>
15-
<directory>./vendor/squizlabs/php_codesniffer/src/Standards/SymfonyCustom</directory>
16-
</whitelist>
17-
</filter>
13+
<testsuites>
14+
<testsuite name="SymfonyCustom">
15+
<file>./vendor/squizlabs/php_codesniffer/tests/Standards/AllSniffs.php</file>
16+
</testsuite>
17+
<testsuite name="TwigCS">
18+
<directory>./TwigCS</directory>
19+
</testsuite>
20+
</testsuites>
1821
</phpunit>

0 commit comments

Comments
 (0)