Passed
Push — master ( 8e3404...1d8186 )
by Jean Paul
01:22
created

FileInputTests::testSetGetInput()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 10
rs 10
1
<?php declare( strict_types = 1 );
2
3
namespace Coco\SourceWatcher\Tests\Core\IO\Inputs;
4
5
use Coco\SourceWatcher\Core\IO\Inputs\FileInput;
6
use PHPUnit\Framework\TestCase;
7
8
class FileInputTests extends TestCase
9
{
10
    public function testSetGetInput () : void
11
    {
12
        $fileInput = new FileInput();
13
14
        $givenFileLocation = "/some/file/location";
15
        $expectedFileLocation = "/some/file/location";
16
17
        $fileInput->setInput( $givenFileLocation );
18
19
        $this->assertEquals( $expectedFileLocation, $fileInput->getInput() );
20
    }
21
}
22