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
36708c91
Commit
36708c91
authored
Feb 10, 2008
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes on the new test suite.
parent
ba308004
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
Doctrine_DbalTestCase.php
tests/lib/Doctrine_DbalTestCase.php
+18
-1
Doctrine_OrmTestCase.php
tests/lib/Doctrine_OrmTestCase.php
+5
-0
No files found.
tests/lib/Doctrine_DbalTestCase.php
View file @
36708c91
...
@@ -4,5 +4,22 @@
...
@@ -4,5 +4,22 @@
*/
*/
class
Doctrine_DbalTestCase
extends
Doctrine_TestCase
class
Doctrine_DbalTestCase
extends
Doctrine_TestCase
{
{
/**
* setUp()
*
* Note: This setUp() and the one of OrmTestCase currently look identical. However,
* please dont pull this method up. In the future with a separation of Dbal/Orm
* this setUp() will take care of a DBAL connection and the ORM setUp() will take care
* of an ORM connection/session/manager.
*/
protected
function
setUp
()
{
// Setup a db connection if there is none, yet. This makes it possible
// to run tests that use a connection standalone.
// @todo Make DBMS choice configurable
if
(
!
isset
(
$this
->
sharedFixture
[
'connection'
]))
{
$pdo
=
new
PDO
(
'sqlite::memory:'
);
$this
->
sharedFixture
[
'connection'
]
=
Doctrine_Manager
::
connection
(
$pdo
,
'sqlite_memory'
);
}
}
}
}
\ No newline at end of file
tests/lib/Doctrine_OrmTestCase.php
View file @
36708c91
...
@@ -24,6 +24,11 @@ class Doctrine_OrmTestCase extends Doctrine_TestCase
...
@@ -24,6 +24,11 @@ class Doctrine_OrmTestCase extends Doctrine_TestCase
/**
/**
* setUp()
* setUp()
*
* Note: This setUp() and the one of DbalTestCase currently look identical. However,
* please dont pull this method up. In the future with a separation of Dbal/Orm
* this setUp() will take care of a ORM connection/session/manager initialization
* and the DBAL setUp() will take care of just a DBAL connection.
*/
*/
protected
function
setUp
()
protected
function
setUp
()
{
{
...
...
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