1--TEST-- 2phpunit --log-junit php://stdout --report-useless-tests StatusTest ../_files/StatusTest.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] = '--report-useless-tests'; 9$_SERVER['argv'][5] = 'StatusTest'; 10$_SERVER['argv'][6] = __DIR__ . '/../_files/StatusTest.php'; 11 12require __DIR__ . '/../bootstrap.php'; 13PHPUnit_TextUI_Command::main(); 14?> 15--EXPECTF-- 16PHPUnit %s by Sebastian Bergmann and contributors. 17 18.FEISRW 7 / 7 (100%)<?xml version="1.0" encoding="UTF-8"?> 19<testsuites> 20 <testsuite name="StatusTest" file="%s/StatusTest.php" tests="4" assertions="2" failures="1" errors="1" time="%s"> 21 <testcase name="testSuccess" class="StatusTest" file="%s/StatusTest.php" line="%d" assertions="1" time="%s"/> 22 <testcase name="testFailure" class="StatusTest" file="%s/StatusTest.php" line="%d" assertions="1" time="%s"> 23 <failure type="PHPUnit_Framework_ExpectationFailedException">StatusTest::testFailure 24Failed asserting that false is true. 25 26%s/StatusTest.php:%s 27</failure> 28 </testcase> 29 <testcase name="testError" class="StatusTest" file="%s/StatusTest.php" line="%d" assertions="0" time="%s"> 30 <error type="Exception">StatusTest::testError 31Exception:%w 32 33%s/StatusTest.php:%d 34</error> 35 </testcase> 36 <testcase name="testWarning" class="StatusTest" file="%s/StatusTest.php" line="%d" assertions="0" time="%s"/> 37 </testsuite> 38</testsuites> 39 40 41Time: %s, Memory: %s 42 43There was 1 error: 44 451) StatusTest::testError 46Exception:%w 47 48%s:%d 49 50-- 51 52There was 1 warning: 53 541) StatusTest::testWarning 55 56%s/StatusTest.php:%d 57 58-- 59 60There was 1 failure: 61 621) StatusTest::testFailure 63Failed asserting that false is true. 64 65%s/StatusTest.php:%d 66 67ERRORS! 68Tests: 7, Assertions: 2, Errors: 1, Failures: 1, Warnings: 1, Skipped: 1, Incomplete: 1, Risky: 1.