| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 13 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 13 | public function testDriverRequiredWithUrl() : void | ||
| 14 |     { | ||
| 15 | $url = 'mysql://localhost'; | ||
| 16 | $exception = DriverRequired::new($url); | ||
| 17 | |||
| 18 | self::assertInstanceOf(DBALException::class, $exception); | ||
| 19 | self::assertSame( | ||
| 20 | sprintf( | ||
| 21 | "The options 'driver' or 'driverClass' are mandatory if a connection URL without scheme " . | ||
| 22 | 'is given to DriverManager::getConnection(). Given URL: %s', | ||
| 23 | $url | ||
| 24 | ), | ||
| 25 | $exception->getMessage() | ||
| 26 | ); | ||
| 29 |