Completed
Push — output_parsers_refactor ( ea70d9...668933 )
by Alessandro
02:32
created

JSONLogFilenameTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

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

1 Method

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