#!/bin/sh # Run the unit tests, if they exist if [ -f "phpunit.xml" ] || [ -f "phpunit.xml.dist" ] || [ -f ".phpunit.xml" ] || [ -f ".phpunit.xml.dist" ] then if [ -f "./vendor/wp-cli/wp-cli-tests/tests/bootstrap.php" ]; then vendor/bin/phpunit --color=always "$@" --bootstrap ./vendor/wp-cli/wp-cli-tests/tests/bootstrap.php else vendor/bin/phpunit --color=always "$@" fi fi