File tree Expand file tree Collapse file tree 3 files changed +0
-26
lines changed Expand file tree Collapse file tree 3 files changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ Laravel-specific Testing Helpers and Assertions.
7474 - [emulateLocal](# emulatelocal)
7575 - [emulateProduction](# emulateproduction)
7676 - [emulateEnvironment](# emulateenvironment)
77- - [isTravis](# istravis)
7877
7978# # Available assertions
8079
@@ -161,16 +160,6 @@ Emulate that application is running on the given environment:
161160$this -> emulateEnvironment(' demo' );
162161` ` `
163162
164- # ### `isTravis()`
165-
166- Check whether the application is running on Travis or not:
167-
168- ` ` ` php
169- $this->isTravis ();
170-
171- // true
172- ` ` `
173-
174163# # Assertions
175164
176165# ## CollectionAsserts
Original file line number Diff line number Diff line change @@ -31,12 +31,4 @@ protected function emulateEnvironment(string $environment): void
3131 return $ environment ;
3232 });
3333 }
34-
35- /**
36- * Check whether the application is running on Travis or not.
37- */
38- protected function isTravis (): bool
39- {
40- return (bool ) getenv ('TRAVIS ' );
41- }
4234}
Original file line number Diff line number Diff line change @@ -29,11 +29,4 @@ public function it_can_emulate_any_environment()
2929
3030 $ this ->assertEquals ('demo ' , $ this ->app ->environment ());
3131 }
32-
33- /** @test */
34- public function it_can_check_if_tests_are_running_on_travis ()
35- {
36- $ expected = (bool ) getenv ('TRAVIS ' );
37- $ this ->assertEquals ($ expected , $ this ->isTravis ());
38- }
3932}
You can’t perform that action at this time.
0 commit comments