StepNodeTest.php 552 B

123456789101112131415161718192021
  1. <?php
  2. namespace Tests\Behat\Gherkin\Node;
  3. use Behat\Gherkin\Node\PyStringNode;
  4. use Behat\Gherkin\Node\StepNode;
  5. use Behat\Gherkin\Node\TableNode;
  6. class StepNodeTest extends \PHPUnit_Framework_TestCase
  7. {
  8. public function testThatStepCanHaveOnlyOneArgument()
  9. {
  10. $this->setExpectedException('Behat\Gherkin\Exception\NodeException');
  11. new StepNode('Gangway!', 'I am on the page:', array(
  12. new PyStringNode(array('one', 'two'), 11),
  13. new TableNode(array(array('one', 'two'))),
  14. ), 10, 'Given');
  15. }
  16. }