#!/bin/bash
APPROOT=`pwd`
DOCROOt=./tests/mocker
# Run PHP built-in Server in the background
cd $DOCROOt
php -S localhost:1010 -t . mock-server.php > phpd.log 2>&1 &
# Get the last background process PID
PHP_PID=$!
# Run the tests
cd $APPROOT
vendor/phpunit/phpunit/phpunit
# Send SIGQUIT to stop the PHP built-in Server
rm -f $DOCROOt/phpd.log
kill -3 $PHP_PID
Last active
January 8, 2018 11:15
-
-
Save nezarfadle/c3d3eef7a05ad8c58f8e7a26262173f3 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment