Yaffs site version 1.1
[yaffs-website] / vendor / phpunit / phpunit / tests / Regression / Trac / 578.phpt
1 --TEST--
2 #578: Double printing of trace line for exceptions from notices and warnings
3 --FILE--
4 <?php
5 $_SERVER['argv'][1] = '--no-configuration';
6 $_SERVER['argv'][2] = 'Issue578Test';
7 $_SERVER['argv'][3] = dirname(__FILE__) . '/578/Issue578Test.php';
8
9 require __DIR__ . '/../../bootstrap.php';
10 PHPUnit_TextUI_Command::main();
11 ?>
12 --EXPECTF--
13 PHPUnit %s by Sebastian Bergmann and contributors.
14
15 EEE
16
17 Time: %s, Memory: %s
18
19 There were 3 errors:
20
21 1) Issue578Test::testNoticesDoublePrintStackTrace
22 Invalid error type specified
23
24 %sIssue578Test.php:%i
25
26 2) Issue578Test::testWarningsDoublePrintStackTrace
27 Invalid error type specified
28
29 %sIssue578Test.php:%i
30
31 3) Issue578Test::testUnexpectedExceptionsPrintsCorrectly
32 Exception: Double printed exception
33
34 %sIssue578Test.php:%i
35
36 FAILURES!
37 Tests: 3, Assertions: 0, Errors: 3.