Passed
Push — master ( cb5e2e...8e3404 )
by Jean Paul
01:17
created

FileInputTests   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testSetGetInput() 0 10 1
1
<?php declare( strict_types = 1 );
2
3
use Coco\SourceWatcher\Core\IO\Inputs\FileInput;
4
use PHPUnit\Framework\TestCase;
5
6
class FileInputTests extends TestCase
7
{
8
    public function testSetGetInput () : void
9
    {
10
        $fileInput = new FileInput();
11
12
        $givenFileLocation = "/some/file/location";
13
        $expectedFileLocation = "/some/file/location";
14
15
        $fileInput->setInput( $givenFileLocation );
16
17
        $this->assertEquals( $expectedFileLocation, $fileInput->getInput() );
18
    }
19
}
20