@@ -11,6 +11,8 @@ $_SERVER['argv'][] = '--log-junit';
11
11
$ _SERVER ['argv ' ][] = $ logfile ;
12
12
$ _SERVER ['argv ' ][] = __DIR__ . '/../../_files/DataProviderTest.php ' ;
13
13
$ _SERVER ['argv ' ][] = __DIR__ . '/../../_files/DataProviderWithStringKeysTest.php ' ;
14
+ $ _SERVER ['argv ' ][] = __DIR__ . '/../../_files/success.phpt ' ;
15
+ $ _SERVER ['argv ' ][] = __DIR__ . '/../../_files/failure.phpt ' ;
14
16
15
17
require_once __DIR__ . '/../../bootstrap.php ' ;
16
18
@@ -22,7 +24,7 @@ unlink($logfile);
22
24
--EXPECTF --
23
25
<? xml version="1.0 " encoding="UTF -8 "?>
24
26
<testsuites>
25
- <testsuite name="CLI Arguments" tests="8 " assertions="8 " errors="0" failures="2 " skipped="0" time="%s">
27
+ <testsuite name="CLI Arguments" tests="10 " assertions="10 " errors="0" failures="3 " skipped="0" time="%s">
26
28
<testsuite name="PHPUnit\TestFixture\DataProviderTest" file="%sDataProviderTest.php" tests="4" assertions="4" errors="0" failures="1" skipped="0" time="%s">
27
29
<testsuite name="PHPUnit\TestFixture\DataProviderTest::testAdd" tests="4" assertions="4" errors="0" failures="1" skipped="0" time="%s">
28
30
<testcase name="testAdd with data set #0" file="%sDataProviderTest.php" line="%d" class="PHPUnit\TestFixture\DataProviderTest" classname="PHPUnit.TestFixture.DataProviderTest" assertions="1" time="%s"/>
@@ -49,5 +51,16 @@ Failed asserting that 2 matches expected 3.
49
51
<testcase name="testAdd with data set "1 + 0 = 1"" file="%sDataProviderWithStringKeysTest.php" line="%d" class="PHPUnit\TestFixture\DataProviderWithStringKeysTest" classname="PHPUnit.TestFixture.DataProviderWithStringKeysTest" assertions="1" time="%s"/>
50
52
</testsuite>
51
53
</testsuite>
54
+ <testcase name="success.phpt" file="%ssuccess.phpt" assertions="1" time="%s"/>
55
+ <testcase name="failure.phpt" file="%sfailure.phpt" assertions="1" time="%s">
56
+ <failure type="PHPUnit\Framework\PhptAssertionFailedError">failure.phptFailed asserting that two strings are equal.%A
57
+ --- Expected
58
+ +++ Actual
59
+ @@ @@
60
+ -'success'
61
+ +'failure'
62
+ %A
63
+ %s:%d</failure>
64
+ </testcase>
52
65
</testsuite>
53
66
</testsuites>
0 commit comments