diff options
Diffstat (limited to 'tests/data/app/code-checker/test-deprecated-constant.php')
-rw-r--r-- | tests/data/app/code-checker/test-deprecated-constant.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/data/app/code-checker/test-deprecated-constant.php b/tests/data/app/code-checker/test-deprecated-constant.php new file mode 100644 index 00000000000..965d84500fd --- /dev/null +++ b/tests/data/app/code-checker/test-deprecated-constant.php @@ -0,0 +1,10 @@ +<?php + +/** + * Class BadClass - creating an instance of a blacklisted class is not allowed + */ +class BadClass { + public function test() { + return \OCP\NamespaceName\ClassName::CONSTANT_NAME; + } +} |