summaryrefslogtreecommitdiffstats
path: root/tests/lib/appframework/utility/ControllerMethodReflectorTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/appframework/utility/ControllerMethodReflectorTest.php')
-rw-r--r--tests/lib/appframework/utility/ControllerMethodReflectorTest.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/lib/appframework/utility/ControllerMethodReflectorTest.php b/tests/lib/appframework/utility/ControllerMethodReflectorTest.php
index 2208875b359..c513e23cd6b 100644
--- a/tests/lib/appframework/utility/ControllerMethodReflectorTest.php
+++ b/tests/lib/appframework/utility/ControllerMethodReflectorTest.php
@@ -37,6 +37,11 @@ class BaseController {
*/
public function test2(){}
+ /**
+ * @Annotation
+ */
+ public function test3(){}
+
}
class MiddleController extends BaseController {
@@ -46,6 +51,8 @@ class MiddleController extends BaseController {
*/
public function test2() {}
+ public function test3() {}
+
}
class EndController extends MiddleController {}
@@ -154,4 +161,11 @@ class ControllerMethodReflectorTest extends \Test\TestCase {
}
+ public function testInheritanceOverrideNoDocblock() {
+ $reader = new ControllerMethodReflector();
+ $reader->reflect('OC\AppFramework\Utility\EndController', 'test3');
+
+ $this->assertFalse($reader->hasAnnotation('Annotation'));
+ }
+
}