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 99 */
1010namespace PHPUnit \Framework ;
1111
12- use function print_r ;
1312use BadFunctionCallException ;
1413use Exception ;
1514
@@ -39,24 +38,4 @@ public function testGetOriginalExceptionWithPrevious(): void
3938
4039 $ this ->assertInstanceOf (BadFunctionCallException::class, $ wrapper ->getOriginalException ());
4140 }
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- }
6241}
You can’t perform that action at this time.
0 commit comments