File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed
MinimizedBacktraceAsStringTest Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,12 @@ class MinimizedBacktraceAsStringTest extends TestCase
5
5
/** @test */
6
6
public function it_returns_minimized_backtrace_as_string ()
7
7
{
8
- $ start = file_get_contents (__DIR__ . '/MinimizedBacktraceAsStringTest/backtrace.txt ' );
8
+ $ travis = getenv ('TRAVIS ' ) ? '.travis ' : '' ;
9
+ $ path = __DIR__ . "/MinimizedBacktraceAsStringTest/backtrace {$ travis }.txt " ;
10
+
11
+ $ start = file_get_contents ($ path );
9
12
$ backtrace = $ this ->getBacktrace ();
13
+
10
14
$ this ->assertStringStartsWith ($ start , $ backtrace );
11
15
}
12
16
Original file line number Diff line number Diff line change
1
+ #0 /home/travis/build/dmitry-ivanov/laravel-helper-functions/src/format.php:60
2
+ #1 /home/travis/build/dmitry-ivanov/laravel-helper-functions/tests/format/MinimizedBacktraceAsStringTest.php:24
3
+ #2 /home/travis/build/dmitry-ivanov/laravel-helper-functions/tests/format/MinimizedBacktraceAsStringTest.php:19
4
+ #3 /home/travis/build/dmitry-ivanov/laravel-helper-functions/tests/format/MinimizedBacktraceAsStringTest.php:12
Original file line number Diff line number Diff line change 1
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
2
+ #1 /Applications/MAMP/htdocs/illuminated/helper-functions/tests/format/MinimizedBacktraceAsStringTest.php:24
3
+ #2 /Applications/MAMP/htdocs/illuminated/helper-functions/tests/format/MinimizedBacktraceAsStringTest.php:19
4
+ #3 /Applications/MAMP/htdocs/illuminated/helper-functions/tests/format/MinimizedBacktraceAsStringTest.php:12
You can’t perform that action at this time.
0 commit comments