Inheritance: extends Symfony\Component\Console\Command\Command
Beispiel #1
0
 /**
  * @test
  * @expectedException \Exception
  * @expectedExceptionMessage Options `files` needs at least one file.
  */
 function it_should_throw_exception_if_files_is_provided_but_it_is_empty()
 {
     $application = new Application();
     $command = new AnalyzeCommand();
     $command->setApplication($application);
     $tester = new CommandTester($command);
     $tester->execute(['--files' => [null]]);
 }