diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-05-05 12:59:33 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-05-05 12:59:33 +0200 |
commit | aae098c24a2c588ff195427f3404b9d679fd9eba (patch) | |
tree | 35717e110aefbe60bb01d6ccd7090e67d576d17d /tests/data | |
parent | 5aa3525479a29ea0521db9050d3ef22e17729e94 (diff) | |
download | nextcloud-server-aae098c24a2c588ff195427f3404b9d679fd9eba.tar.gz nextcloud-server-aae098c24a2c588ff195427f3404b9d679fd9eba.zip |
Check usage of != and == - refs #16054
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) { + } + } +} |