]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix unit test
authorRoeland Jago Douma <rullzer@owncloud.com>
Wed, 23 Dec 2015 13:12:37 +0000 (14:12 +0100)
committerRoeland Jago Douma <rullzer@owncloud.com>
Thu, 24 Dec 2015 08:20:26 +0000 (09:20 +0100)
tests/lib/appframework/utility/ControllerMethodReflectorTest.php

index 38bd537e07312ac4eb397692a93b224150dc8d28..c643c362a9c64ec3e5a659d1a759c4b607677959 100644 (file)
@@ -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'));