array( 'feature' => 'Feature', 'background' => 'Background', 'scenario' => 'Scenario', 'scenario_outline' => 'Scenario Outline', 'examples' => 'Examples', 'given' => 'Given', 'when' => 'When', 'then' => 'Then', 'and' => 'And', 'but' => 'But' ), 'ru' => array( 'feature' => 'Функционал', 'background' => 'Предыстория', 'scenario' => 'Сценарий', 'scenario_outline' => 'Структура сценария', 'examples' => 'Значения', 'given' => 'Допустим', 'when' => 'То', 'then' => 'Если', 'and' => 'И', 'but' => 'Но' ) )); $this->gherkin = new Parser(new Lexer($keywords)); } public function testStepRightAfterFeature() { $feature = <<gherkin->parse($feature); $this->assertEquals("\n Given some step-like line", $parsed->getDescription()); } public function testTextInBackground() { $feature = <<gherkin->parse($feature); } public function testTextInScenario() { $feature = <<gherkin->parse($feature); $this->assertCount(2, $scenarios = $feature->getScenarios()); $firstTitle = <<assertEquals($firstTitle, $scenarios[0]->getTitle()); $secondTitle = <<assertEquals($secondTitle, $scenarios[1]->getTitle()); } /** * @expectedException \Behat\Gherkin\Exception\ParserException */ public function testAmbigiousLanguage() { $feature = <<gherkin->parse($feature); } /** * @expectedException \Behat\Gherkin\Exception\ParserException */ public function testEmptyOutline() { $feature = <<gherkin->parse($feature); } /** * @expectedException \Behat\Gherkin\Exception\ParserException */ public function testWrongTagPlacement() { $feature = <<gherkin->parse($feature); } /** * @expectedException \Behat\Gherkin\Exception\ParserException */ public function testBackgroundWithTag() { $feature = <<gherkin->parse($feature); } /** * @expectedException \Behat\Gherkin\Exception\ParserException */ public function testEndlessPyString() { $feature = <<gherkin->parse($feature); } /** * @expectedException \Behat\Gherkin\Exception\ParserException */ public function testWrongStepType() { $feature = <<gherkin->parse($feature); } /** * @expectedException \Behat\Gherkin\Exception\ParserException */ public function testMultipleBackgrounds() { $feature = <<gherkin->parse($feature); } /** * @expectedException \Behat\Gherkin\Exception\ParserException */ public function testMultipleFeatures() { $feature = <<gherkin->parse($feature); } /** * @expectedException \Behat\Gherkin\Exception\ParserException */ public function testTableWithoutRightBorder() { $feature = <<gherkin->parse($feature); } }