Skip to content

Commit e549f28

Browse files
committed
ITT: isTravis helper method readme info added.
1 parent 40040a6 commit e549f28

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ Provides Laravel-specific testing helpers and asserts.
5959
> New helpers are always adding. Feel free to contribute.
6060
6161
- [ApplicationHelpers](#applicationhelpers)
62+
- [isTravis](#istravis)
6263
- [emulateLocal](#emulatelocal)
6364
- [emulateProduction](#emulateproduction)
6465
- [emulateEnvironment](#emulateenvironment)
@@ -129,6 +130,16 @@ Provides Laravel-specific testing helpers and asserts.
129130
130131
### ApplicationHelpers
131132
133+
#### `isTravis()`
134+
135+
Checks if tests are running on [Travis CI](https://travis-ci.org) or not:
136+
137+
```php
138+
if ($this->isTravis()) {
139+
// Yep, it's Travis.
140+
}
141+
```
142+
132143
#### `emulateLocal()`
133144

134145
Emulates that application is working at `local` environment:

0 commit comments

Comments
 (0)