for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare( strict_types = 1 );
use Coco\SourceWatcher\Core\Database\Connections\Connector;
use Coco\SourceWatcher\Core\IO\Outputs\DatabaseOutput;
use PHPUnit\Framework\TestCase;
class DatabaseOutputTests extends TestCase
{
public function testSetGetOutput () : void
$databaseOutput = new DatabaseOutput();
$givenOutput = $this->createMock( Connector::class );
$expectedOutput = $this->createMock( Connector::class );
$databaseOutput->setOutput( $givenOutput );
$this->assertEquals( $expectedOutput, $databaseOutput->getOutput() );
}