File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
MinimizedBacktraceAsStringTest Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ class MinimizedBacktraceAsStringTest extends TestCase
4+ {
5+ /** @test */
6+ public function it_returns_minimized_backtrace_as_string ()
7+ {
8+ $ start = file_get_contents (__DIR__ . '/MinimizedBacktraceAsStringTest/backtrace.txt ' );
9+ $ backtrace = $ this ->getBacktrace ();
10+ $ this ->assertStringStartsWith ($ start , $ backtrace );
11+ }
12+
13+ private function getBacktrace ()
14+ {
15+ return $ this ->anotherExtraMethod ();
16+ }
17+
18+ private function anotherExtraMethod ()
19+ {
20+ return minimized_backtrace_as_string ();
21+ }
22+ }
Original file line number Diff line number Diff line change 1+ #0 /Applications/MAMP/htdocs/illuminated/helper-functions/src/format.php:60
2+ #1 /Applications/MAMP/htdocs/illuminated/helper-functions/tests/format/MinimizedBacktraceAsStringTest.php:20
3+ #2 /Applications/MAMP/htdocs/illuminated/helper-functions/tests/format/MinimizedBacktraceAsStringTest.php:15
4+ #3 /Applications/MAMP/htdocs/illuminated/helper-functions/tests/format/MinimizedBacktraceAsStringTest.php:9
You can’t perform that action at this time.
0 commit comments