aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2015-12-23 14:12:37 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2015-12-24 09:20:26 +0100
commitb2df7b6b8ae420766f1ce0a7b22e153f9ee1b23e (patch)
treee86801ec8257cb674782f6449402d3d40a69f101 /tests
parent23c754aed3bfa5c795a03e63183158d028a6a408 (diff)
downloadnextcloud-server-b2df7b6b8ae420766f1ce0a7b22e153f9ee1b23e.tar.gz
nextcloud-server-b2df7b6b8ae420766f1ce0a7b22e153f9ee1b23e.zip
Fix unit test
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/appframework/utility/ControllerMethodReflectorTest.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/lib/appframework/utility/ControllerMethodReflectorTest.php b/tests/lib/appframework/utility/ControllerMethodReflectorTest.php
index 38bd537e073..c643c362a9c 100644
--- a/tests/lib/appframework/utility/ControllerMethodReflectorTest.php
+++ b/tests/lib/appframework/utility/ControllerMethodReflectorTest.php
@@ -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'));