RunTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testRun() 0 8 1
1
<?php
2
3
namespace Hairmare\Dodat;
4
5
class RunTest extends \PHPUnit_Framework_TestCase
6
{
7
    public function testRun()
8
    {
9
        $sut = new Run;
10
        $sut->setScripts(array('printf "Hello "', 'echo "World!"'));
11
        $sut->run();
12
13
        $this->expectOutputString("Hello World!\n");
14
    }
15
}
16