Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gopibabus/phpunit-notes

PHPUnit Notes
https://github.com/gopibabus/phpunit-notes

feature-testing integration-testing php phpunit unit-testing

Last synced: 12 days ago
JSON representation

PHPUnit Notes

Awesome Lists containing this project

README

        

# PHPUnit Notes

## How to build and run php unit test cases

```bash
# Build PHP App Image
docker container prune -f && docker compose --build -d

# Run PHP App Container to execute phpunit test cases
docker container prune -f && docker compose run phpunit

# Install composer dependencies
docker container prune -f && docker compose run composer install
```

### PHPUnit Commands

```bash
# Run test suite
php vendor/bin/phpunit --testsuite=Integration

```