Fix unit test
This commit is contained in:
parent
23c754aed3
commit
b2df7b6b8a
|
@ -108,13 +108,17 @@ class ControllerMethodReflectorTest extends \Test\TestCase {
|
||||||
* @Annotation
|
* @Annotation
|
||||||
* @param int $a
|
* @param int $a
|
||||||
* @param int $b
|
* @param int $b
|
||||||
|
*/
|
||||||
|
public function arguments3($a, float $b, int $c, $d){}
|
||||||
|
|
||||||
|
/**
|
||||||
* @requires PHP 7
|
* @requires PHP 7
|
||||||
*/
|
*/
|
||||||
public function testReadTypeIntAnnotationsScalarTypes($a, float $b, int $c, $d){
|
public function testReadTypeIntAnnotationsScalarTypes(){
|
||||||
$reader = new ControllerMethodReflector();
|
$reader = new ControllerMethodReflector();
|
||||||
$reader->reflect(
|
$reader->reflect(
|
||||||
'\OC\AppFramework\Utility\ControllerMethodReflectorTest',
|
'\OC\AppFramework\Utility\ControllerMethodReflectorTest',
|
||||||
'testReadTypeIntAnnotationsScalarTypes'
|
'arguments3'
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->assertEquals('int', $reader->getType('a'));
|
$this->assertEquals('int', $reader->getType('a'));
|
||||||
|
|
Loading…
Reference in New Issue