summaryrefslogtreecommitdiffstats
path: root/tests/lib/appframework/utility
diff options
context:
space:
mode:
authorRobin McCorkell <rmccorkell@karoshi.org.uk>2015-06-21 20:26:57 +0100
committerRobin McCorkell <rmccorkell@karoshi.org.uk>2015-06-21 20:26:57 +0100
commitf1e3e2515856816fabbd0836ddc24495d35c2edf (patch)
treeb5187ca19d9baf772e37bf8828f7c14162fac071 /tests/lib/appframework/utility
parent04b6f67f07802f4a4b580f74cf2502f5e0cbbb24 (diff)
downloadnextcloud-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.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 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() {