| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function testCreateConnectionDifferentDriver() |
||
| 34 | { |
||
| 35 | $pdo = new PDOStub(); |
||
| 36 | |||
| 37 | $factory = Mockery::mock(ConnectionFactory::class, [new Container()])->makePartial(); |
||
| 38 | $factory->shouldAllowMockingProtectedMethods(); |
||
| 39 | $conn = $factory->createConnection('sqlite', $pdo, 'database'); |
||
| 40 | |||
| 41 | $this->assertInstanceOf(\Illuminate\Database\SQLiteConnection::class, $conn); |
||
| 42 | } |
||
| 44 |