Commit b2df7b6b authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Fix unit test

parent 23c754ae
......@@ -108,13 +108,17 @@ class ControllerMethodReflectorTest extends \Test\TestCase {
* @Annotation
* @param int $a
* @param int $b
*/
public function arguments3($a, float $b, int $c, $d){}
/**
* @requires PHP 7
*/
public function testReadTypeIntAnnotationsScalarTypes($a, float $b, int $c, $d){
public function testReadTypeIntAnnotationsScalarTypes(){
$reader = new ControllerMethodReflector();
$reader->reflect(
'\OC\AppFramework\Utility\ControllerMethodReflectorTest',
'testReadTypeIntAnnotationsScalarTypes'
'arguments3'
);
$this->assertEquals('int', $reader->getType('a'));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment