Skip to content

Commit db5f678

Browse files
committed
Add test group to skip integration tests relying on internet connection
1 parent 43fc3f9 commit db5f678

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,6 +1359,14 @@ To run the test suite, go to the project root and run:
13591359
$ php vendor/bin/phpunit
13601360
```
13611361

1362+
The test suite also contains a number of functional integration tests that rely
1363+
on a stable internet connection.
1364+
If you do not want to run these, they can simply be skipped like this:
1365+
1366+
```bash
1367+
$ php vendor/bin/phpunit --exclude-group internet
1368+
```
1369+
13621370
## License
13631371

13641372
MIT, see [LICENSE file](LICENSE).

tests/IntegrationTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use React\Socket\SecureConnector;
1111
use React\Socket\TcpConnector;
1212

13+
/** @group internet */
1314
class IntegrationTest extends TestCase
1415
{
1516
const TIMEOUT = 5.0;

0 commit comments

Comments
 (0)