Skip to content

Commit abc99ed

Browse files
louismrosekoenpunt
authored andcommitted
Add info on skipped tests and how to fix them (#547)
* Add info on skipped tests and how to fix them * Detail PHPAR env vars in contribution docs. * Clarifies that brew commands are for macOS
1 parent d9d8786 commit abc99ed

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

CONTRIBUTING.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,18 @@ Or run a single test file by specifying its path:
2626
```sh
2727
vendor/bin/phpunit test/InflectorTest.php
2828
```
29+
30+
#### Skipped Tests ####
31+
32+
You might notice that some tests are marked as skipped. To obtain more information about skipped
33+
tests, pass the `--verbose` flag to PHPUnit:
34+
35+
```sh
36+
vendor/bin/phpunit --verbose
37+
```
38+
39+
Some common steps for fixing skipped tests are to:
40+
41+
* Install `memcached` and the PHP memcached extension (e.g., `brew install php56-memcache memcached` on macOS)
42+
* Install the PDO drivers for PostgreSQL (e.g., `brew install php56-pdo-pgsql` on macOS)
43+
* Create a MySQL database and a PostgreSQL database. You can either create these such that they are available at the default locations of `mysql://test:[email protected]/test` and `pgsql://test:[email protected]/test` respectively. Alternatively, you can set the `PHPAR_MYSQL` and `PHPAR_PGSQL` environment variables to specify a different location for the MySQL and PostgreSQL databases.

0 commit comments

Comments
 (0)