Skip to content

Commit 16852d5

Browse files
committed
Update the README's test suites section
Signed-off-by: Matthew Setter <matthew@matthewsetter.com> This change replaces the Test suites section copied over from phpdb's README in the previous commit with one that is applicable to this project, specifically.
1 parent 26db578 commit 16852d5

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,21 @@ This section outlines specifics for php-db.
2828

2929
### Test suites
3030

31-
The `phpunit.xml.dist` file defines two test suites, "unit test" and "integration test".
32-
You can run one or the other using the `--testsuite` option to `phpunit`:
31+
To run the project's test suite, run the command below:
3332

3433
```bash
35-
./vendor/bin/phpunit --testsuite "unit test" # unit tests only
36-
./vendor/bin/phpunit --testsuite "integration test" # integration tests only
34+
composer check
3735
```
3836

39-
Unit tests do not require additional functionality beyond having the appropriate database extensions present and loaded in your PHP binary.
37+
This [Composer script][composer-scripts] runs both the unit and integration tests, as well as code style and static analysis.
4038

4139
---
4240

4341
- File issues at <https://github.com/php-db/phpdb-sqlite/issues>
4442
- Documentation is at <https://docs.php-db.dev>
4543

4644
[composer]: https://getcomposer.org
45+
[composer-scripts]: https://getcomposer.org/doc/articles/scripts.md
4746
[laminas-db]: https://docs.laminas.dev/laminas-db/
4847
[php-db]: https://github.com/php-db/phpdb
4948
[php-pdo-extension]: https://www.php.net/manual/en/pdo.installation.php

0 commit comments

Comments
 (0)