Browse Source

AppFramework annotation whitespace unit test

remotes/origin/poc-doctrine-migrations
Robin McCorkell 11 years ago
parent
commit
f1e3e25158
  1. 14
      tests/lib/appframework/utility/ControllerMethodReflectorTest.php

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

Loading…
Cancel
Save