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

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