thrownew\InvalidArgumentException("Can not convert '$url' to a database connection, the module providing the driver '{$driverName}' is not specified");
}
// Use the driver name as the module name when the module name is not
* Tests for database URL to/from database connection array conversions.
*
@@ -297,14 +299,34 @@ public static function providerInvalidArgumentsUrlConversion() {
return[
['foo','',"Missing scheme in URL 'foo'"],
['foo','bar',"Missing scheme in URL 'foo'"],
['foo://','bar',"Can not convert 'foo://' to a database connection, the module providing the driver 'foo' is not specified"],
['foo://bar','baz',"Can not convert 'foo://bar' to a database connection, the module providing the driver 'foo' is not specified"],
['foo://bar:port','baz',"Can not convert 'foo://bar:port' to a database connection, the module providing the driver 'foo' is not specified"],
['foo/bar/baz','bar2',"Missing scheme in URL 'foo/bar/baz'"],
['foo://bar:baz@test1','test2',"Can not convert 'foo://bar:baz@test1' to a database connection, the module providing the driver 'foo' is not specified"],
];
}
/**
* Tests that connection URL with no module name defaults to driver name.