Passed
Push — master ( 46260f...cb5e2e )
by Jean Paul
01:23
created

DatabaseLoaderTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testSetAndGetOutput() 0 10 1
1
<?php declare( strict_types = 1 );
2
3
namespace Coco\SourceWatcher\Tests\Core\Loaders;
4
5
use Coco\SourceWatcher\Core\Database\Connections\Connector;
6
use Coco\SourceWatcher\Core\IO\Outputs\DatabaseOutput;
7
use Coco\SourceWatcher\Core\Loaders\DatabaseLoader;
8
use PHPUnit\Framework\TestCase;
9
10
/**
11
 * Class DatabaseLoaderTest
12
 * @package Coco\SourceWatcher\Tests\Core\Loaders
13
 */
14
class DatabaseLoaderTest extends TestCase
15
{
16
    /**
17
     *
18
     */
19
    public function testSetAndGetOutput () : void
20
    {
21
        $expectedConnector = $this->createMock( Connector::class );
22
23
        $databaseOutput = new DatabaseOutput( $expectedConnector );
24
25
        $databaseLoader = new DatabaseLoader();
26
        $databaseLoader->setOutput( $databaseOutput );
27
28
        $this->assertSame( $databaseOutput, $databaseLoader->getOutput() );
29
    }
30
}
31