From eb1c4379415c60dbb873b549683978af79d1027d Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 15 Jun 2015 18:36:04 +0200 Subject: Check for methods as good as possible --- tests/data/app/code-checker/test-deprecated-function-alias.php | 1 + tests/data/app/code-checker/test-deprecated-function-sub-alias.php | 1 + tests/data/app/code-checker/test-deprecated-function-sub.php | 1 + tests/data/app/code-checker/test-deprecated-function.php | 1 + tests/data/app/code-checker/test-deprecated-method.php | 5 +++++ 5 files changed, 9 insertions(+) create mode 100644 tests/data/app/code-checker/test-deprecated-method.php (limited to 'tests/data') 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 @@ methodName(); +$class::methodName(); -- cgit v1.2.3