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

DatabaseLoaderTest::testSetAndGetConnector()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 4
c 2
b 0
f 0
dl 0
loc 8
rs 10
cc 1
nc 1
nop 0
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