/** * @expectedException \Intervention\Image\Exception\InvalidArgumentException */ public function testRequiredFailSecondParameter() { $arg = new Argument($this->getMockedCommand(array('foo')), 1); $arg->required(); }