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-21 20:26:57 +0100 |
commit | f1e3e2515856816fabbd0836ddc24495d35c2edf (patch) | |
tree | b5187ca19d9baf772e37bf8828f7c14162fac071 /tests/lib/appframework/utility | |
parent | 04b6f67f07802f4a4b580f74cf2502f5e0cbbb24 (diff) | |
download | nextcloud-server-f1e3e2515856816fabbd0836ddc24495d35c2edf.tar.gz nextcloud-server-f1e3e2515856816fabbd0836ddc24495d35c2edf.zip |
AppFramework annotation whitespace unit test
Diffstat (limited to 'tests/lib/appframework/utility')
-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 c513e23cd6b..a584b5481ba 100644 --- a/tests/lib/appframework/utility/ControllerMethodReflectorTest.php +++ b/tests/lib/appframework/utility/ControllerMethodReflectorTest.php @@ -119,6 +119,20 @@ class ControllerMethodReflectorTest extends \Test\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() { |