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

PyStringNodeTest::testGetStrings()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Tests\Behat\Gherkin\Node;
4
5
use Behat\Gherkin\Node\PyStringNode;
6
7
class PyStringNodeTest extends \PHPUnit_Framework_TestCase
8
{
9
    public function testGetStrings()
10
    {
11
        $str = new PyStringNode(array('line1', 'line2', 'line3'), 0);
12
13
        $this->assertEquals(array('line1', 'line2', 'line3'), $str->getStrings());
14
    }
15
16
    public function testGetRaw()
17
    {
18
        $str = new PyStringNode(array('line1', 'line2', 'line3'), 0);
19
20
        $expected = <<<STR
21
line1
22
line2
23
line3
24
STR;
25
        $this->assertEquals($expected, $str->getRaw());
26
    }
27
}
28