diff options
author | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2015-06-21 20:26:57 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@karoshi.org.uk> | 2015-06-22 12:18:03 +0100 |
commit | 28ea652e1996f7dce8abc44f56128b1d1654aece (patch) | |
tree | 530acc322660f20cd127dcbb289107cd328c1707 | |
parent | 8592c0efb749e1ceadda17f19d89ef52bbd60570 (diff) | |
download | nextcloud-server-28ea652e1996f7dce8abc44f56128b1d1654aece.tar.gz nextcloud-server-28ea652e1996f7dce8abc44f56128b1d1654aece.zip |
AppFramework annotation whitespace unit test
-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 8939a203edb..feb6ac5a352 100644 --- a/tests/lib/appframework/utility/ControllerMethodReflectorTest.php +++ b/tests/lib/appframework/utility/ControllerMethodReflectorTest.php @@ -87,6 +87,20 @@ class ControllerMethodReflectorTest extends \PHPUnit_Framework_TestCase { $this->assertEquals('double', $reader->getType('test')); } + /** + * @Annotation + * @param string $foo + */ + public function testReadTypeWhitespaceAnnotations(){ + $reader = new ControllerMethodReflector(); + $reader->reflect( + '\OC\AppFramework\Utility\ControllerMethodReflectorTest', + 'testReadTypeWhitespaceAnnotations' + ); + + $this->assertEquals('string', $reader->getType('foo')); + } + public function arguments($arg, $arg2='hi') {} public function testReflectParameters() { |