diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-01-29 20:35:07 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-01-29 20:35:07 +0100 |
commit | 81836ccc7e19289d401ab9def6b8f467ed6e20f5 (patch) | |
tree | 6aa59ab6fed20e3530cdf3bed4193cec37deceda /tests | |
parent | 72d2b6f723fb5462264fed31a4d7a8e3799d2f79 (diff) | |
download | nextcloud-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.php | 14 |
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')); + } + } |