summaryrefslogtreecommitdiffstats
path: root/tests/data
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-05-05 12:59:33 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-05-05 12:59:33 +0200
commitaae098c24a2c588ff195427f3404b9d679fd9eba (patch)
tree35717e110aefbe60bb01d6ccd7090e67d576d17d /tests/data
parent5aa3525479a29ea0521db9050d3ef22e17729e94 (diff)
downloadnextcloud-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.php11
-rw-r--r--tests/data/app/code-checker/test-not-equal.php11
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) {
+ }
+ }
+}