From cf05334297f8132de09529b7554d88523e272849 Mon Sep 17 00:00:00 2001 From: Remco Tolsma <869674+remcotolsma@users.noreply.github.com> Date: Tue, 12 Apr 2022 11:08:53 +0200 Subject: [PATCH] Add test. --- composer.json | 7 ++++++- tests/test.php | 8 ++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 tests/test.php diff --git a/composer.json b/composer.json index 27dfd31..f681ad7 100644 --- a/composer.json +++ b/composer.json @@ -43,5 +43,10 @@ "squizlabs/php_codesniffer": "^3.6", "wp-coding-standards/wpcs": "^2.3" }, - "prefer-stable": true + "prefer-stable": true, + "scripts": { + "test": [ + "vendor/bin/phpcs --standard=PronamicWP tests/test.php" + ] + } } diff --git a/tests/test.php b/tests/test.php new file mode 100644 index 0000000..30de031 --- /dev/null +++ b/tests/test.php @@ -0,0 +1,8 @@ +