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