#!/usr/bin/env sh
set -eu

find . -path ./vendor -prune -o -name '*.php' -type f -print | while IFS= read -r file; do
  php -l "$file" >/dev/null
done
php tests/core_test.php
php tests/config_test.php
php tests/trusted_proxy_test.php
php tests/security_test.php
php tests/data_test.php
php tests/auth_test.php
php tests/validation_rate_test.php
php tests/login_test.php
php tests/cms_test.php
php tests/headless_domain_test.php
php tests/headless_api_contract_test.php
php tests/headless_api_security_test.php
php tests/headless_preview_security_test.php
php tests/installer_test.php
php tests/bridge_test.php
php tests/global_rate_limit_test.php
php tests/make_resource_test.php
php tests/inspect_component_contract_test.php
php tests/asset_versioning_test.php
php tests/fullstack_test.php
