RunTest::testRun()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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