From dbf3eca09b4b0698578cfe0b5ffe097ede1aa39c Mon Sep 17 00:00:00 2001 From: Javier Spagnoletti Date: Fri, 21 Apr 2023 14:25:32 -0300 Subject: [PATCH] Add tests --- tests/expected_report.txt | 7 ++++--- tests/fixed/annotation-name.php | 25 +++++++++++++++++++++++++ tests/input/annotation-name.php | 25 +++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 tests/fixed/annotation-name.php create mode 100644 tests/input/annotation-name.php diff --git a/tests/expected_report.txt b/tests/expected_report.txt index 17734237..ad414ad4 100644 --- a/tests/expected_report.txt +++ b/tests/expected_report.txt @@ -3,12 +3,13 @@ PHP CODE SNIFFER REPORT SUMMARY ---------------------------------------------------------------------- FILE ERRORS WARNINGS ---------------------------------------------------------------------- +tests/input/annotation-name.php 8 0 tests/input/array_indentation.php 10 0 tests/input/arrow-functions-format.php 10 0 tests/input/assignment-operators.php 4 0 tests/input/attributes.php 15 0 tests/input/binary_operators.php 9 0 -tests/input/class-references.php 10 0 +tests/input/class-references.php 10 2 tests/input/ClassPropertySpacing.php 2 0 tests/input/concatenation_spacing.php 49 0 tests/input/constants-no-lsb.php 2 0 @@ -52,9 +53,9 @@ tests/input/use-ordering.php 1 0 tests/input/useless-semicolon.php 2 0 tests/input/UselessConditions.php 21 0 ---------------------------------------------------------------------- -A TOTAL OF 453 ERRORS AND 0 WARNINGS WERE FOUND IN 48 FILES +A TOTAL OF 461 ERRORS AND 2 WARNINGS WERE FOUND IN 49 FILES ---------------------------------------------------------------------- -PHPCBF CAN FIX 375 OF THESE SNIFF VIOLATIONS AUTOMATICALLY +PHPCBF CAN FIX 378 OF THESE SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- diff --git a/tests/fixed/annotation-name.php b/tests/fixed/annotation-name.php new file mode 100644 index 00000000..5afd943e --- /dev/null +++ b/tests/fixed/annotation-name.php @@ -0,0 +1,25 @@ +