/** @test */ public function it_does_not_accept_invalid_format_value() { $this->setExpectedException('UnexpectedValueException'); $arguments = ['php-hound', '--format=invalid']; $cli = $this->getCliMock(); $command = new Command($cli, $this->binariesPath, $arguments); $command->run(); }
/** @test */ public function it_accepts_ignore_param_with_empty_value() { $cli = $this->getMock('League\\CLImate\\CLImate', ['output']); $arguments = ['php-hound', '--ignore=']; $command = new Command($cli, $this->binariesPath, $arguments); $this->assertEquals([], $command->getIgnoredPaths()); }