Completed
Pull Request — master (#112)
by Christophe
02:50
created

StepNodeTest::testThatStepCanHaveOnlyOneArgument()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 9
rs 9.6666
cc 1
eloc 6
nc 1
nop 0
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');
0 ignored issues
show
Deprecated Code introduced by
The method PHPUnit_Framework_TestCase::setExpectedException() has been deprecated with message: Method deprecated since Release 5.2.0

This method has been deprecated. The supplier of the class has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.

Loading history...
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
}
21