private function getInput() { $yaml = new \Symfony\Component\Yaml\Parser(); $local_defaults = $yaml->parse(file_get_contents(__DIR__ . '/../configs/default.yml')); $local_defaults['root'] = __DIR__ . '/../../'; $input = new GinnyInput($local_defaults); $input->bind(new GinnyDefinition()); return $input; }
/** * @covers \Foote\Ginny\Command\GinnyInput::validate * * @expectedException \Foote\Ginny\Exception\GinnyInputException * @expectedExceptionCode 103 */ public function testInvalidGeneratorNamespaceException() { $yaml = new \Symfony\Component\Yaml\Parser(); $local_defaults = $yaml->parse(file_get_contents(__DIR__ . '/../configs/default.yml')); $local_defaults['root'] = __DIR__ . '/../../'; $input = new GinnyInput($local_defaults, ['-g' => 'InvalidGeneratorName']); $input->bind(new GinnyDefinition()); $input->validate(); }