StepNodeTest::testThatStepCanHaveOnlyOneArgument()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
cc 1
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
use PHPUnit\Framework\TestCase;
9
10
class StepNodeTest extends TestCase
11
{
12
    public function testThatStepCanHaveOnlyOneArgument()
13
    {
14
        $this->expectException('Behat\Gherkin\Exception\NodeException');
15
16
        new StepNode('Gangway!', 'I am on the page:', array(
17
            new PyStringNode(array('one', 'two'), 11),
18
            new TableNode(array(array('one', 'two'))),
19
        ), 10, 'Given');
20
    }
21
}
22