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

JSONLogFileNameTest::testGenerate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 1
eloc 5
nc 1
nop 0
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