NullProcessTest   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A testConstruct() 0 6 1
A testStart() 0 6 1
A testRun() 0 6 1
A testWait() 0 6 1
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