Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
1e0dd622
Commit
1e0dd622
authored
Feb 06, 2013
by
Victor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Doctrine tests
parent
e69e9f00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
tests/Silex/Tests/Provider/DoctrineServiceProviderTest.php
tests/Silex/Tests/Provider/DoctrineServiceProviderTest.php
+8
-0
No files found.
tests/Silex/Tests/Provider/DoctrineServiceProviderTest.php
View file @
1e0dd622
...
@@ -38,6 +38,10 @@ class DoctrineServiceProviderTest extends \PHPUnit_Framework_TestCase
...
@@ -38,6 +38,10 @@ class DoctrineServiceProviderTest extends \PHPUnit_Framework_TestCase
public
function
testSingleConnection
()
public
function
testSingleConnection
()
{
{
if
(
!
in_array
(
'sqlite'
,
\PDO
::
getAvailableDrivers
()))
{
$this
->
markTestSkipped
(
'pdo_sqlite is not available'
);
}
$app
=
new
Application
();
$app
=
new
Application
();
$app
->
register
(
new
DoctrineServiceProvider
(),
array
(
$app
->
register
(
new
DoctrineServiceProvider
(),
array
(
'db.options'
=>
array
(
'driver'
=>
'pdo_sqlite'
,
'memory'
=>
true
),
'db.options'
=>
array
(
'driver'
=>
'pdo_sqlite'
,
'memory'
=>
true
),
...
@@ -55,6 +59,10 @@ class DoctrineServiceProviderTest extends \PHPUnit_Framework_TestCase
...
@@ -55,6 +59,10 @@ class DoctrineServiceProviderTest extends \PHPUnit_Framework_TestCase
public
function
testMultipleConnections
()
public
function
testMultipleConnections
()
{
{
if
(
!
in_array
(
'sqlite'
,
\PDO
::
getAvailableDrivers
()))
{
$this
->
markTestSkipped
(
'pdo_sqlite is not available'
);
}
$app
=
new
Application
();
$app
=
new
Application
();
$app
->
register
(
new
DoctrineServiceProvider
(),
array
(
$app
->
register
(
new
DoctrineServiceProvider
(),
array
(
'dbs.options'
=>
array
(
'dbs.options'
=>
array
(
...
...
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