summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2015-01-29 20:35:07 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2015-01-29 20:35:07 +0100
commit81836ccc7e19289d401ab9def6b8f467ed6e20f5 (patch)
tree6aa59ab6fed20e3530cdf3bed4193cec37deceda /tests
parent72d2b6f723fb5462264fed31a4d7a8e3799d2f79 (diff)
downloadnextcloud-server-81836ccc7e19289d401ab9def6b8f467ed6e20f5.tar.gz
nextcloud-server-81836ccc7e19289d401ab9def6b8f467ed6e20f5.zip
another test for overriding the docblock
Diffstat (limited to 'tests')
-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'));
+ }
+
}