/** @test */ public function it_runs_analysis_tools() { $cli = $this->getMock('League\\CLImate\\CLImate', ['output']); $arguments = ['php-hound', 'src']; $command = new Command($cli, $this->binariesPath, $arguments); $command->run(); }
/** @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(); }