summaryrefslogtreecommitdiffstats
path: root/tests/data/app/code-checker/test-deprecated-constant-alias.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data/app/code-checker/test-deprecated-constant-alias.php')
-rw-r--r--tests/data/app/code-checker/test-deprecated-constant-alias.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/data/app/code-checker/test-deprecated-constant-alias.php b/tests/data/app/code-checker/test-deprecated-constant-alias.php
index 4f3d3e81316..b5a5bfdb762 100644
--- a/tests/data/app/code-checker/test-deprecated-constant-alias.php
+++ b/tests/data/app/code-checker/test-deprecated-constant-alias.php
@@ -1,12 +1,8 @@
<?php
-use OCP\NamespaceName\ClassName as Constant;
+use OCP\NamespaceName\ClassName as Alias;
/**
* Class BadClass - creating an instance of a blacklisted class is not allowed
*/
-class BadClass {
- public function test() {
- return Constant::CONSTANT_NAME;
- }
-}
+Alias::CONSTANT_NAME;