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

DatabaseOutputTests::testSetGetOutput()   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
use Coco\SourceWatcher\Core\Database\Connections\Connector;
4
use Coco\SourceWatcher\Core\IO\Outputs\DatabaseOutput;
5
use PHPUnit\Framework\TestCase;
6
7
class DatabaseOutputTests extends TestCase
8
{
9
    public function testSetGetOutput () : void
10
    {
11
        $databaseOutput = new DatabaseOutput();
12
13
        $givenOutput = $this->createMock( Connector::class );
14
        $expectedOutput = $this->createMock( Connector::class );
15
16
        $databaseOutput->setOutput( $givenOutput );
17
18
        $this->assertEquals( $expectedOutput, $databaseOutput->getOutput() );
19
    }
20
}
21