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