mirror of
https://github.com/WordPress/WordPress-Coding-Standards.git
synced 2026-07-27 10:37:02 +08:00
12 lines
360 B
Bash
Executable file
12 lines
360 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
cd "$(git rev-parse --show-toplevel)"
|
|
|
|
if [ ! -e ../../../CodeSniffer.php ]; then
|
|
echo "You must clone the WordPress standard inside of the phpcs CodeSniffer/Standards directory; could not find ../../../CodeSniffer.php" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
find . \( -name '*.php' \) -exec php -lf {} \;
|
|
|
|
phpunit --filter WordPress ../../../tests/AllTests.php
|