Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / Regression / GitHub / 873-php7.phpt
1 --TEST--
2 GH-873: PHPUnit suppresses exceptions thrown outside of test case function
3 --SKIPIF--
4 <?php
5 if (PHP_MAJOR_VERSION < 7) {
6     print 'skip: PHP 7 is required';
7 }
8 ?>
9 --FILE--
10 <?php
11 $_SERVER['argv'][1] = '--no-configuration';
12 $_SERVER['argv'][2] = 'Issue873Test';
13 $_SERVER['argv'][3] = dirname(__FILE__) . '/873/Issue873Test.php';
14
15 require __DIR__ . '/../../bootstrap.php';
16 PHPUnit_TextUI_Command::main();
17 ?>
18 --EXPECTF--
19
20 Fatal error: Uncaught Exception: PHPUnit suppresses exceptions thrown outside of test case function in %s:%i
21 Stack trace:
22 %a