Passed
Push — master ( f2ef7e...a434d7 )
by Jean Paul
01:13
created

JsonExtractorTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 2
b 0
f 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testSetterGetterAttributeInput() 0 10 1
1
<?php declare( strict_types = 1 );
2
3
namespace Coco\SourceWatcher\Tests\Core\Extractors;
4
5
use Coco\SourceWatcher\Core\Extractors\JsonExtractor;
6
7
use PHPUnit\Framework\TestCase;
8
9
class JsonExtractorTest extends TestCase
10
{
11
    public function testSetterGetterAttributeInput () : void
12
    {
13
        $jsonExtractor = new JsonExtractor();
14
15
        $givenInput = "/some/file/path/file.json";
16
        $expectedInput = "/some/file/path/file.json";
17
18
        $jsonExtractor->setInput( $givenInput );
19
20
        $this->assertEquals( $expectedInput, $jsonExtractor->getInput() );
21
    }
22
}
23