summaryrefslogtreecommitdiffstats
path: root/tests/data/app
diff options
context:
space:
mode:
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();