Security update for permissions_by_term
[yaffs-website] / vendor / behat / gherkin / tests / Behat / Gherkin / Node / StepNodeTest.php
1 <?php
2
3 namespace Tests\Behat\Gherkin\Node;
4
5 use Behat\Gherkin\Node\PyStringNode;
6 use Behat\Gherkin\Node\StepNode;
7 use Behat\Gherkin\Node\TableNode;
8
9 class StepNodeTest extends \PHPUnit_Framework_TestCase
10 {
11     public function testThatStepCanHaveOnlyOneArgument()
12     {
13         $this->setExpectedException('Behat\Gherkin\Exception\NodeException');
14
15         new StepNode('Gangway!', 'I am on the page:', array(
16             new PyStringNode(array('one', 'two'), 11),
17             new TableNode(array(array('one', 'two'))),
18         ), 10, 'Given');
19     }
20 }