Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / TextUI / dataprovider-log-xml.phpt
1 --TEST--
2 phpunit --log-junit php://stdout DataProviderTest ../_files/DataProviderTest.php
3 --FILE--
4 <?php
5 $_SERVER['argv'][1] = '--no-configuration';
6 $_SERVER['argv'][2] = '--log-junit';
7 $_SERVER['argv'][3] = 'php://stdout';
8 $_SERVER['argv'][4] = 'DataProviderTest';
9 $_SERVER['argv'][5] = dirname(dirname(__FILE__)) . '/_files/DataProviderTest.php';
10
11 require __DIR__ . '/../bootstrap.php';
12 PHPUnit_TextUI_Command::main();
13 ?>
14 --EXPECTF--
15 PHPUnit %s by Sebastian Bergmann and contributors.
16
17 ..F.<?xml version="1.0" encoding="UTF-8"?>
18 <testsuites>
19   <testsuite name="DataProviderTest" file="%sDataProviderTest.php" tests="4" assertions="4" failures="1" errors="0" time="%f">
20     <testsuite name="DataProviderTest::testAdd" tests="4" assertions="4" failures="1" errors="0" time="%f">
21       <testcase name="testAdd with data set #0" assertions="1" time="%f"/>
22       <testcase name="testAdd with data set #1" assertions="1" time="%f"/>
23       <testcase name="testAdd with data set #2" assertions="1" time="%f">
24         <failure type="PHPUnit_Framework_ExpectationFailedException">DataProviderTest::testAdd with data set #2 (1, 1, 3)
25 Failed asserting that 2 matches expected 3.
26
27 %s:%i
28 </failure>
29       </testcase>
30       <testcase name="testAdd with data set #3" assertions="1" time="%f"/>
31     </testsuite>
32   </testsuite>
33 </testsuites>
34
35
36 Time: %s, Memory: %s
37
38 There was 1 failure:
39
40 1) DataProviderTest::testAdd with data set #2 (1, 1, 3)
41 Failed asserting that 2 matches expected 3.
42
43 %s:%i
44
45 FAILURES!
46 Tests: 4, Assertions: 4, Failures: 1.