summaryrefslogtreecommitdiffstats
path: root/tests/data/app/code-checker/test-deprecated-use-sub.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data/app/code-checker/test-deprecated-use-sub.php')
-rw-r--r--tests/data/app/code-checker/test-deprecated-use-sub.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/data/app/code-checker/test-deprecated-use-sub.php b/tests/data/app/code-checker/test-deprecated-use-sub.php
new file mode 100644
index 00000000000..a53e9a7229e
--- /dev/null
+++ b/tests/data/app/code-checker/test-deprecated-use-sub.php
@@ -0,0 +1,9 @@
+<?php
+
+use OCP\AppFramework;
+
+/**
+ * Class BadClass - creating an instance of a blacklisted class is not allowed
+ */
+class BadClass implements AppFramework\IApi {
+}