summaryrefslogtreecommitdiffstats
path: root/tests/data/app
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-06-15 18:36:04 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-07-17 12:34:56 +0200
commiteb1c4379415c60dbb873b549683978af79d1027d (patch)
tree41ebe1bb3a9c1a9b8e4849e60079848bf43ccfea /tests/data/app
parent2783a780708e4e5c04b6935840416d219bc4d852 (diff)
downloadnextcloud-server-eb1c4379415c60dbb873b549683978af79d1027d.tar.gz
nextcloud-server-eb1c4379415c60dbb873b549683978af79d1027d.zip
Check for methods as good as possible
Diffstat (limited to 'tests/data/app')
-rw-r--r--tests/data/app/code-checker/test-deprecated-function-alias.php1
-rw-r--r--tests/data/app/code-checker/test-deprecated-function-sub-alias.php1
-rw-r--r--tests/data/app/code-checker/test-deprecated-function-sub.php1
-rw-r--r--tests/data/app/code-checker/test-deprecated-function.php1
-rw-r--r--tests/data/app/code-checker/test-deprecated-method.php5
5 files changed, 9 insertions, 0 deletions
diff --git a/tests/data/app/code-checker/test-deprecated-function-alias.php b/tests/data/app/code-checker/test-deprecated-function-alias.php
index 0c958cc635c..28ed5051191 100644
--- a/tests/data/app/code-checker/test-deprecated-function-alias.php
+++ b/tests/data/app/code-checker/test-deprecated-function-alias.php
@@ -3,3 +3,4 @@
use OCP\NamespaceName\ClassName as Alias;
Alias::functionName();
+Alias::methodName();
diff --git a/tests/data/app/code-checker/test-deprecated-function-sub-alias.php b/tests/data/app/code-checker/test-deprecated-function-sub-alias.php
index f728eaf9fd0..73dd5814531 100644
--- a/tests/data/app/code-checker/test-deprecated-function-sub-alias.php
+++ b/tests/data/app/code-checker/test-deprecated-function-sub-alias.php
@@ -3,3 +3,4 @@
use OCP\NamespaceName as SubAlias;
SubAlias\ClassName::functionName();
+SubAlias\ClassName::methodName();
diff --git a/tests/data/app/code-checker/test-deprecated-function-sub.php b/tests/data/app/code-checker/test-deprecated-function-sub.php
index f7e15903d5d..c08d3bad8c0 100644
--- a/tests/data/app/code-checker/test-deprecated-function-sub.php
+++ b/tests/data/app/code-checker/test-deprecated-function-sub.php
@@ -3,3 +3,4 @@
use OCP\NamespaceName;
NamespaceName\ClassName::functionName();
+NamespaceName\ClassName::methodName();
diff --git a/tests/data/app/code-checker/test-deprecated-function.php b/tests/data/app/code-checker/test-deprecated-function.php
index 0016076e377..12a144a7118 100644
--- a/tests/data/app/code-checker/test-deprecated-function.php
+++ b/tests/data/app/code-checker/test-deprecated-function.php
@@ -1,3 +1,4 @@
<?php
\OCP\NamespaceName\ClassName::functionName();
+\OCP\NamespaceName\ClassName::methodName();
diff --git a/tests/data/app/code-checker/test-deprecated-method.php b/tests/data/app/code-checker/test-deprecated-method.php
new file mode 100644
index 00000000000..ee2fdb642d4
--- /dev/null
+++ b/tests/data/app/code-checker/test-deprecated-method.php
@@ -0,0 +1,5 @@
+<?php
+
+$class = new \OCP\NamespaceName\ClassName();
+$class->methodName();
+$class::methodName();