Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
fbc96155
Commit
fbc96155
authored
Nov 26, 2014
by
David Zuelke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fallthrough scheme tests, and turns out underscores are a no go :(
parent
4c25c6b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
DriverManager.php
lib/Doctrine/DBAL/DriverManager.php
+0
-1
DriverManagerTest.php
tests/Doctrine/Tests/DBAL/DriverManagerTest.php
+12
-0
No files found.
lib/Doctrine/DBAL/DriverManager.php
View file @
fbc96155
...
...
@@ -57,7 +57,6 @@ final class DriverManager
private
static
$_driverSchemeAliases
=
array
(
'db2'
=>
'ibm_db2'
,
'mssql'
=>
'pdo_sqlsrv'
,
'pdo_mssql'
=>
'pdo_sqlsrv'
,
'mysql'
=>
'pdo_mysql'
,
'mysql2'
=>
'pdo_mysql'
,
// Amazon RDS, for some weird reason
'postgres'
=>
'pdo_pgsql'
,
...
...
tests/Doctrine/Tests/DBAL/DriverManagerTest.php
View file @
fbc96155
...
...
@@ -175,6 +175,10 @@ class DriverManagerTest extends \Doctrine\Tests\DbalTestCase
'sqlite:///:memory:'
,
array
(
'dbname'
=>
':memory:'
,
'driver'
=>
'Doctrine\DBAL\Driver\PDOSqlite\Driver'
),
),
'sqlite memory with host'
=>
array
(
'sqlite://localhost/:memory:'
,
array
(
'dbname'
=>
':memory:'
,
'driver'
=>
'Doctrine\DBAL\Driver\PDOSqlite\Driver'
),
),
'params parsed from URL override individual params'
=>
array
(
array
(
'url'
=>
'mysql://foo:bar@localhost/baz'
,
'password'
=>
'lulz'
),
array
(
'user'
=>
'foo'
,
'password'
=>
'bar'
,
'host'
=>
'localhost'
,
'dbname'
=>
'baz'
,
'driver'
=>
'Doctrine\DBAL\Driver\PDOMySQL\Driver'
),
...
...
@@ -187,6 +191,14 @@ class DriverManagerTest extends \Doctrine\Tests\DbalTestCase
'url'
=>
'mysql://foo:bar@localhost/dbname?charset=UTF-8'
,
array
(
'charset'
=>
'UTF-8'
),
),
'simple URL with fallthrough scheme not defined in map'
=>
array
(
'sqlsrv://foo:bar@localhost/baz'
,
array
(
'user'
=>
'foo'
,
'password'
=>
'bar'
,
'host'
=>
'localhost'
,
'dbname'
=>
'baz'
,
'driver'
=>
'Doctrine\DBAL\Driver\SQLSrv\Driver'
),
),
'simple URL with fallthrough scheme containing underscores fails'
=>
array
(
'drizzle_pdo_mysql://foo:bar@localhost/baz'
,
false
,
),
);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment