Completed
Pull Request — master (#30)
by Scott
02:36
created

FileParserTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testNoResultFromAst() 0 7 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: scott
5
 * Date: 11/02/18
6
 * Time: 17:13
7
 */
8
9
namespace exussum12\CoverageChecker\tests;
10
11
12
use exussum12\CoverageChecker\FileParser;
13
use PHPUnit\Framework\TestCase;
14
15
class FileParserTest extends TestCase
16
{
17
    public function testNoResultFromAst()
18
    {
19
        $badCode = "<?php badCode";
20
        $fileParser = new FileParser($badCode);
21
22
        $this->assertSame([], $fileParser->getClassLimits());
23
    }
24
}
25