Files
faveo/vendor/phpunit/phpunit/tests/Regression/GitHub/1471.phpt
2016-06-13 20:41:55 +05:30

29 lines
613 B
PHP

--TEST--
GH-1471: Output made while test is running is printed although expectOutputString() is used when an assertion fails
--FILE--
<?php
$_SERVER['argv'][1] = '--no-configuration';
$_SERVER['argv'][2] = 'Issue1471Test';
$_SERVER['argv'][3] = __DIR__ . '/1471/Issue1471Test.php';
require __DIR__ . '/../../bootstrap.php';
PHPUnit_TextUI_Command::main();
?>
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.
F
Time: %s, Memory: %s
There was 1 failure:
1) Issue1471Test::testFailure
Failed asserting that false is true.
%s/Issue1471Test.php:10
FAILURES!
Tests: 1, Assertions: 1, Failures: 1.