/** * @test */ public function hasArgumentsReturnsTrueIfCommandExpectsArguments() { $parameterReflection = $this->createMock(\TYPO3\Flow\Reflection\ParameterReflection::class, array(), array(array(__CLASS__, 'dummyMethod'), 'arg')); $this->methodReflection->expects($this->atLeastOnce())->method('getParameters')->will($this->returnValue(array($parameterReflection))); $this->assertTrue($this->command->hasArguments()); }