| Server IP : 164.138.27.172 / Your IP : 216.73.217.113 Web Server : nginx/1.27.4 System : Linux cookingdream 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : www-adm ( 1001) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /home/jonasn/dev/wpcs/bin/ |
Upload File : |
#!/bin/bash
set -e
cd "$(git rev-parse --show-toplevel)"
phpcs_root="$(dirname $(dirname $(which phpcs)))"
if [ -z "$phpcs_root" ] || [ ! -d "$phpcs_root" ] || [ ! -e "$phpcs_root/tests/AllTests.php" ]; then
echo "Unable to locate phpcs on path to locate the root of the PHP_CodeSniffer project" 1>&2
exit 1
fi
find . \( -name '*.php' \) -exec php -lf {} \;
PHPCS_DIR=$phpcs_root phpunit --filter WordPress --bootstrap="$phpcs_root/tests/bootstrap.php" "$phpcs_root/tests/AllTests.php"