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

StepNodeTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 12
wmc 1
lcom 0
cbo 4
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testThatStepCanHaveOnlyOneArgument() 0 9 1
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