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] = __DIR__ . '/578/Issue578Test.php';
8
9require __DIR__ . '/../../bootstrap.php';
10PHPUnit_TextUI_Command::main();
11?>
12--EXPECTF--
13PHPUnit %s by Sebastian Bergmann and contributors.
14
15EEE                                                                 3 / 3 (100%)
16
17Time: %s, Memory: %s
18
19There were 3 errors:
20
211) Issue578Test::testNoticesDoublePrintStackTrace
22Invalid error type specified
23
24%sIssue578Test.php:%i
25
262) Issue578Test::testWarningsDoublePrintStackTrace
27Invalid error type specified
28
29%sIssue578Test.php:%i
30
313) Issue578Test::testUnexpectedExceptionsPrintsCorrectly
32Exception: Double printed exception
33
34%sIssue578Test.php:%i
35
36ERRORS!
37Tests: 3, Assertions: 0, Errors: 3.
38