Skip to content

Commit 3616513

Browse files
1 parent 0605856 commit 3616513

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

tests/unit/Framework/ExceptionWrapperTest.php

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010
namespace PHPUnit\Framework;
1111

12-
use function print_r;
1312
use BadFunctionCallException;
1413
use 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
}

0 commit comments

Comments
 (0)