Completed
Push — output_parsers_refactor ( 710907...9ffc6c )
by Alessandro
02:42
created

JSONLogFileNameTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 3
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGenerate() 0 9 1
1
<?php
2
3
namespace Paraunit\Tests\Unit\Configuration;
4
5
6
use Paraunit\Configuration\JSONLogFilename;
7
use Paraunit\Tests\Stub\StubbedParaProcess;
8
9
/**
10
 * Class JSONLogFileNameTest
11
 * @package Paraunit\Tests\Unit\Configuration
12
 */
13
class JSONLogFileNameTest extends \PHPUnit_Framework_TestCase
14
{
15
    public function testGenerate()
16
    {
17
        $process = new StubbedParaProcess();
18
        $fileName = new JSONLogFilename();
19
20
        $fileName = $fileName->generate($process);
21
22
        $this->assertEquals('/dev/shm/paraunit/logs/' . $process->getUniqueId() . '.json.log', $fileName);
23
    }
24
}
25