public function testBootstrapOptionWorks() { $input = new ArrayInput(array('-c' => 'tests/Fixtures/configuration-empty.xml', '--bootstrap' => 'tests/Fixtures/bootstrap-3.php')); $app = new CoversValidator(); $exitCode = $app->doRun($input, new NullOutput()); $this->assertEquals(0, $exitCode); }
public function testApplicationIsRight() { $app = new CoversValidator(); $defaultCommands = $app->all(); $definition = $app->getDefinition(); $this->assertEmpty($definition->getArguments()); $this->assertArrayHasKey('validate', $defaultCommands); $this->assertInstanceOf('OckCyp\\CoversValidator\\Command\\ValidateCommand', $defaultCommands['validate']); }