summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorBernhard Posselt <Raydiation@users.noreply.github.com>2015-06-22 10:35:28 +0200
committerBernhard Posselt <Raydiation@users.noreply.github.com>2015-06-22 10:35:28 +0200
commit7fe5ab4d4a43efb0384e59012fa1934acae7d6dc (patch)
tree179db751fed38d669e1053537a2cafa51f9ac1c2 /tests/lib
parentc77e44117d1cdb45a224e3f370acbb09f1b095dc (diff)
parentf1e3e2515856816fabbd0836ddc24495d35c2edf (diff)
downloadnextcloud-server-7fe5ab4d4a43efb0384e59012fa1934acae7d6dc.tar.gz
nextcloud-server-7fe5ab4d4a43efb0384e59012fa1934acae7d6dc.zip
Merge pull request #17056 from owncloud/appframework-type-cast
Allow multiple whitespace in type hints in AppFramework
Diffstat (limited to 'tests/lib')
-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() {