summaryrefslogtreecommitdiffstats
path: root/tests/data/app/code-checker/test-deprecated-constant.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data/app/code-checker/test-deprecated-constant.php')
-rw-r--r--tests/data/app/code-checker/test-deprecated-constant.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/data/app/code-checker/test-deprecated-constant.php b/tests/data/app/code-checker/test-deprecated-constant.php
index 965d84500fd..170b1d9e5ad 100644
--- a/tests/data/app/code-checker/test-deprecated-constant.php
+++ b/tests/data/app/code-checker/test-deprecated-constant.php
@@ -3,8 +3,4 @@
/**
* Class BadClass - creating an instance of a blacklisted class is not allowed
*/
-class BadClass {
- public function test() {
- return \OCP\NamespaceName\ClassName::CONSTANT_NAME;
- }
-}
+\OCP\NamespaceName\ClassName::CONSTANT_NAME;