Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / Regression / GitHub / 1471.phpt
diff --git a/vendor/phpunit/phpunit/tests/Regression/GitHub/1471.phpt b/vendor/phpunit/phpunit/tests/Regression/GitHub/1471.phpt
new file mode 100644 (file)
index 0000000..2088682
--- /dev/null
@@ -0,0 +1,28 @@
+--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.