Skip to content

Commit cc2fd72

Browse files
committed
Remove the isTravis() helper method
1 parent 839ec5d commit cc2fd72

File tree

3 files changed

+0
-26
lines changed

3 files changed

+0
-26
lines changed

README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff 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

src/Helpers/ApplicationHelpers.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff 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
}

tests/Helpers/ApplicationHelpersTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)