LoadTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testLoading() 0 10 1
1
<?php
2
3
namespace Hairmare\Dodat;
4
5
class LoadTest extends \PHPUnit_Framework_TestCase
6
{
7
    public function testLoading()
8
    {
9
        $sut = new Load(file_get_contents(__DIR__.'/../.travis.yml'));
10
11
        $scripts = $sut->getScripts();
12
        $this->assertEquals('./vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover', $scripts[0]);
13
        $this->assertEquals('php ocular.phar code-coverage:upload --format=php-clover coverage.clover', $scripts[1]);
14
        $this->assertEquals('./vendor/bin/phpcs --standard=PSR1 bin/ src/ test/', $scripts[2]);
15
        $this->assertEquals('./vendor/bin/phpcs --standard=PSR2 bin/ src/ test/', $scripts[3]);
16
    }
17
}
18