X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fbehat%2Fgherkin%2Ftests%2FBehat%2FGherkin%2FParserExceptionsTest.php;fp=vendor%2Fbehat%2Fgherkin%2Ftests%2FBehat%2FGherkin%2FParserExceptionsTest.php;h=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=c416ec2e701a4143c386392648ad56986a311dfe;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/vendor/behat/gherkin/tests/Behat/Gherkin/ParserExceptionsTest.php b/vendor/behat/gherkin/tests/Behat/Gherkin/ParserExceptionsTest.php deleted file mode 100644 index c416ec2e7..000000000 --- a/vendor/behat/gherkin/tests/Behat/Gherkin/ParserExceptionsTest.php +++ /dev/null @@ -1,291 +0,0 @@ - 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); - } -}