DatabaseOutputTests   A
last analyzed

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
/**
10
 * Class DatabaseOutputTests
11
 *
12
 * @package Coco\SourceWatcher\Tests\Core\IO\Outputs
13
 */
14
class DatabaseOutputTests extends TestCase
15
{
16
    public function testSetGetOutput () : void
17
    {
18
        $databaseOutput = new DatabaseOutput();
19
20
        $givenOutput = $this->createMock( Connector::class );
21
        $expectedOutput = $this->createMock( Connector::class );
22
23
        $databaseOutput->setOutput( $givenOutput );
24
25
        $this->assertEquals( [ $expectedOutput ], $databaseOutput->getOutput() );
26
    }
27
}
28