File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change 9
9
*/
10
10
namespace PHPUnit \Framework ;
11
11
12
- use function print_r ;
13
12
use BadFunctionCallException ;
14
13
use Exception ;
15
14
@@ -39,24 +38,4 @@ public function testGetOriginalExceptionWithPrevious(): void
39
38
40
39
$ this ->assertInstanceOf (BadFunctionCallException::class, $ wrapper ->getOriginalException ());
41
40
}
42
-
43
- /**
44
- * @runInSeparateProcess
45
- */
46
- public function testNoOriginalExceptionInStacktrace (): void
47
- {
48
- $ e = new BadFunctionCallException ('custom class exception ' );
49
- $ wrapper = new ExceptionWrapper ($ e );
50
-
51
- // Replace the only mention of "BadFunctionCallException" in wrapper
52
- $ wrapper ->setClassName ('MyException ' );
53
-
54
- $ data = print_r ($ wrapper , true );
55
-
56
- $ this ->assertStringNotContainsString (
57
- 'BadFunctionCallException ' ,
58
- $ data ,
59
- 'Assert there is s no other BadFunctionCallException mention in stacktrace ' ,
60
- );
61
- }
62
41
}
You can’t perform that action at this time.
0 commit comments