Step 3: Add PHPUnit command

This commit is contained in:
Oliver Davies 2020-08-27 20:34:36 +01:00
parent 3c1954f310
commit 65b4926e0d
2 changed files with 8 additions and 0 deletions

7
.ddev/commands/web/phpunit Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
## Description: Run PHPUnit tests inside the web container.
## Usage: phpunit
## Example: "ddev phpunit" or with additional arguments such as "ddev phpunit --testdox"
../vendor/bin/phpunit --config .. $*

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
/vendor/
/*.cache
!/.ddev/commands/