| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function testMysqlReturnsMysqlTableDumper() |
||
| 17 | { |
||
| 18 | $processTable = Mockery::mock(Pool::class); |
||
| 19 | |||
| 20 | $config = Mockery::mock(ConnectionConfigInterface::class); |
||
| 21 | $config->shouldReceive('getDriver') |
||
| 22 | ->andReturn('mysql'); |
||
| 23 | |||
| 24 | $dumperFactory = new TableDumperFactory($processTable); |
||
|
|
|||
| 25 | |||
| 26 | $tableDumper = $dumperFactory->getDumper($config); |
||
| 27 | |||
| 28 | $this->assertInstanceOf(TableDumperInterface::class, $tableDumper); |
||
| 29 | $this->assertInstanceOf(MysqlTableDumper::class, $tableDumper); |
||
| 30 | } |
||
| 48 |