diff options
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/app/code-checker/test-equal.php | 11 | ||||
-rw-r--r-- | tests/data/app/code-checker/test-not-equal.php | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/data/app/code-checker/test-equal.php b/tests/data/app/code-checker/test-equal.php new file mode 100644 index 00000000000..90543ba7258 --- /dev/null +++ b/tests/data/app/code-checker/test-equal.php @@ -0,0 +1,11 @@ +<?php + +/** + * Class BadClass - uses equal instead of identical operator + */ +class BadClass { + public function foo() { + if (true == false) { + } + } +} diff --git a/tests/data/app/code-checker/test-not-equal.php b/tests/data/app/code-checker/test-not-equal.php new file mode 100644 index 00000000000..d9a8d1c25c6 --- /dev/null +++ b/tests/data/app/code-checker/test-not-equal.php @@ -0,0 +1,11 @@ +<?php + +/** + * Class BadClass - uses equal instead of identical operator + */ +class BadClass { + public function foo() { + if (true != false) { + } + } +} |