AppFramework annotation whitespace unit test

This commit is contained in:
Robin McCorkell 2015-06-21 20:26:57 +01:00
parent 04b6f67f07
commit f1e3e25158
1 changed files with 14 additions and 0 deletions

View File

@ -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() {