]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - tests/PHPUnit/Tests/Regression/578.phpt
Added unit tests.
[Github/sugarcrm.git] / tests / PHPUnit / Tests / Regression / 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] = 'Issue578Test';
6 $_SERVER['argv'][2] = 'Regression/Issue578Test.php';
7
8 require_once dirname(dirname(dirname(__FILE__))) . '/TextUI/Command.php';
9 PHPUnit_TextUI_Command::main();
10 ?>
11 --EXPECTF--
12 PHPUnit %s by Sebastian Bergmann.
13
14 EEE
15
16 Time: %i seconds
17
18 There were 3 errors:
19
20 1) testNoticesDoublePrintStackTrace(Issue578Test)
21 Invalid error type specified
22 %s/Issue578Test.php:%i
23 %s/578.php:%i
24
25 2) testWarningsDoublePrintStackTrace(Issue578Test)
26 Invalid error type specified
27 %s/Issue578Test.php:%i
28 %s/578.php:%i
29
30 3) testUnexpectedExceptionsPrintsCorrectly(Issue578Test)
31 Exception: Double printed exception
32 %s/Issue578Test.php:%i
33 %s/578.php:%i
34
35 FAILURES!
36 Tests: 3, Assertions: 0, Errors: 3.