Completed
Push — master ( 065c69...391b65 )
by David
08:13 queued 05:43
created

CommentParserTest::testParse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace TheCodingMachine\GraphQL\Controllers\Reflection;
4
5
use PHPUnit\Framework\TestCase;
6
7
class CommentParserTest extends TestCase
8
{
9
    public function testParse()
10
    {
11
        $commentParser = new CommentParser(<<<EOF
12
/**
13
 * Foo
14
 * Bar
15
 *
16
 * @param string \$id yop
17
 */
18
EOF
19
        );
20
21
        $this->assertSame("Foo\nBar", $commentParser->getComment());
22
    }
23
}
24