X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fbehat%2Fgherkin%2Ftests%2FBehat%2FGherkin%2FNode%2FOutlineNodeTest.php;fp=vendor%2Fbehat%2Fgherkin%2Ftests%2FBehat%2FGherkin%2FNode%2FOutlineNodeTest.php;h=0000000000000000000000000000000000000000;hp=1e889b80fc840fe8331459296a742a686fcb165a;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/behat/gherkin/tests/Behat/Gherkin/Node/OutlineNodeTest.php b/vendor/behat/gherkin/tests/Behat/Gherkin/Node/OutlineNodeTest.php deleted file mode 100644 index 1e889b80f..000000000 --- a/vendor/behat/gherkin/tests/Behat/Gherkin/Node/OutlineNodeTest.php +++ /dev/null @@ -1,68 +0,0 @@ -', array(), null, 'Given'), - new StepNode('Aye!', 'my email is ', array(), null, 'And'), - new StepNode('Blimey!', 'I open homepage', array(), null, 'When'), - new StepNode('Let go and haul', 'website should recognise me', array(), null, 'Then'), - ); - - $table = new ExampleTableNode(array( - array('name', 'email'), - array('everzet', 'ever.zet@gmail.com'), - array('example', 'example@example.com') - ), 'Examples'); - - $outline = new OutlineNode(null, array(), $steps, $table, null, null); - - $this->assertCount(2, $examples = $outline->getExamples()); - $this->assertEquals(1, $examples[0]->getLine()); - $this->assertEquals(2, $examples[1]->getLine()); - $this->assertEquals(array('name' => 'everzet', 'email' => 'ever.zet@gmail.com'), $examples[0]->getTokens()); - $this->assertEquals(array('name' => 'example', 'email' => 'example@example.com'), $examples[1]->getTokens()); - } - - public function testCreatesEmptyExamplesForEmptyExampleTable() - { - $steps = array( - new StepNode('Gangway!', 'I am ', array(), null, 'Given'), - new StepNode('Aye!', 'my email is ', array(), null, 'And'), - new StepNode('Blimey!', 'I open homepage', array(), null, 'When'), - new StepNode('Let go and haul', 'website should recognise me', array(), null, 'Then'), - ); - - $table = new ExampleTableNode(array( - array('name', 'email') - ), 'Examples'); - - $outline = new OutlineNode(null, array(), $steps, $table, null, null); - - $this->assertCount(0, $examples = $outline->getExamples()); - } - - public function testCreatesEmptyExamplesForNoExampleTable() - { - $steps = array( - new StepNode('Gangway!', 'I am ', array(), null, 'Given'), - new StepNode('Aye!', 'my email is ', array(), null, 'And'), - new StepNode('Blimey!', 'I open homepage', array(), null, 'When'), - new StepNode('Let go and haul', 'website should recognise me', array(), null, 'Then'), - ); - - $table = new ExampleTableNode(array(), 'Examples'); - - $outline = new OutlineNode(null, array(), $steps, $table, null, null); - - $this->assertCount(0, $examples = $outline->getExamples()); - } -}