1--TEST-- 2phpunit --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] = __DIR__ . '/../_files/DataProviderTest.php'; 10 11require __DIR__ . '/../bootstrap.php'; 12PHPUnit_TextUI_Command::main(); 13--EXPECTF-- 14PHPUnit %s by Sebastian Bergmann and contributors. 15 16..F. 4 / 4 (100%)<?xml version="1.0" encoding="UTF-8"?> 17<testsuites> 18 <testsuite name="DataProviderTest" file="%sDataProviderTest.php" tests="4" assertions="4" failures="1" errors="0" time="%f"> 19 <testsuite name="DataProviderTest::testAdd" tests="4" assertions="4" failures="1" errors="0" time="%f"> 20 <testcase name="testAdd with data set #0" assertions="1" time="%f"/> 21 <testcase name="testAdd with data set #1" assertions="1" time="%f"/> 22 <testcase name="testAdd with data set #2" assertions="1" time="%f"> 23 <failure type="PHPUnit_Framework_ExpectationFailedException">DataProviderTest::testAdd with data set #2 (1, 1, 3) 24Failed asserting that 2 matches expected 3. 25 26%s:%i 27</failure> 28 </testcase> 29 <testcase name="testAdd with data set #3" assertions="1" time="%f"/> 30 </testsuite> 31 </testsuite> 32</testsuites> 33 34 35Time: %s, Memory: %s 36 37There was 1 failure: 38 391) DataProviderTest::testAdd with data set #2 (1, 1, 3) 40Failed asserting that 2 matches expected 3. 41 42%s:%i 43 44FAILURES! 45Tests: 4, Assertions: 4, Failures: 1. 46