Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / Regression / GitHub / 873-php5.phpt
diff --git a/vendor/phpunit/phpunit/tests/Regression/GitHub/873-php5.phpt b/vendor/phpunit/phpunit/tests/Regression/GitHub/873-php5.phpt
new file mode 100644 (file)
index 0000000..89b7402
--- /dev/null
@@ -0,0 +1,22 @@
+--TEST--
+GH-873: PHPUnit suppresses exceptions thrown outside of test case function
+--SKIPIF--
+<?php
+if (PHP_MAJOR_VERSION > 5) {
+    print 'skip: PHP 5 is required';
+}
+?>
+--FILE--
+<?php
+$_SERVER['argv'][1] = '--no-configuration';
+$_SERVER['argv'][2] = 'Issue873Test';
+$_SERVER['argv'][3] = dirname(__FILE__) . '/873/Issue873Test.php';
+
+require __DIR__ . '/../../bootstrap.php';
+PHPUnit_TextUI_Command::main();
+?>
+--EXPECTF--
+
+Fatal error: Uncaught exception 'Exception' with message 'PHPUnit suppresses exceptions thrown outside of test case function' in %s:%i
+Stack trace:
+%a