diff --git a/test.ps1 b/test.ps1 new file mode 100644 index 0000000..f630beb --- /dev/null +++ b/test.ps1 @@ -0,0 +1,12 @@ +#$env:XDEBUG_MODE = "debug" +#$env:XDEBUG_SESSION = 1 + +# If no arguments, run all tests. +if (-not $args) +{ + ./vendor/bin/phpunit --stop-on-failure -c phpunit.xml.dist +} +else +{ + ./vendor/bin/phpunit --stop-on-failure -c phpunit.xml.dist --filter $args[0] +} diff --git a/test.sh b/test.sh new file mode 100644 index 0000000..eb6f7a9 --- /dev/null +++ b/test.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +#export XDEBUG_MODE=debug XDEBUG_SESSION=1 + +# If no arguments, run all tests. +if [ -z "$1" ] +then + ./vendor/bin/phpunit --stop-on-failure -c phpunit.xml.dist +else + ./vendor/bin/phpunit --stop-on-failure -c phpunit.xml.dist --filter "$1" +fi