NullProcessTest::testWait()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4286
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
/**
3
 * File NullProcessTest.php
4
 *
5
 * @author Edward Pfremmer <[email protected]>
6
 */
7
namespace Epfremme\ProcessQueue\Tests\Process;
8
9
use Epfremme\ProcessQueue\Process\NullProcess;
10
use Symfony\Component\Process\Process;
11
12
/**
13
 * Class NullProcessTest
14
 *
15
 * @package Epfremme\ProcessQueue\Tests\Process
16
 */
17
class NullProcessTest extends \PHPUnit_Framework_TestCase
18
{
19
    public function testConstruct()
20
    {
21
        $process = new NullProcess();
22
23
        $this->assertInstanceOf(Process::class, $process);
24
    }
25
26
    public function testStart()
27
    {
28
        $process = new NullProcess();
29
30
        $this->assertNull($process->start());
31
    }
32
33
    public function testRun()
34
    {
35
        $process = new NullProcess();
36
37
        $this->assertEquals(0, $process->run());
38
    }
39
40
    public function testWait()
41
    {
42
        $process = new NullProcess();
43
44
        $this->assertEmpty(0, $process->wait());
45
    }
46
}
47