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
ba308004
Commit
ba308004
authored
Feb 10, 2008
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes on the new test suite.
parent
6329db60
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
0 deletions
+17
-0
TestTest.php
tests/Orm/Component/TestTest.php
+1
-0
Doctrine_DbalTestSuite.php
tests/lib/Doctrine_DbalTestSuite.php
+1
-0
Doctrine_OrmTestCase.php
tests/lib/Doctrine_OrmTestCase.php
+14
-0
Doctrine_OrmTestSuite.php
tests/lib/Doctrine_OrmTestSuite.php
+1
-0
No files found.
tests/Orm/Component/TestTest.php
View file @
ba308004
...
...
@@ -5,6 +5,7 @@ class Orm_Component_TestTest extends Doctrine_OrmTestCase
{
protected
function
setUp
()
{
parent
::
setUp
();
$this
->
loadFixture
(
'forum'
,
'common'
,
'users'
);
}
...
...
tests/lib/Doctrine_DbalTestSuite.php
View file @
ba308004
...
...
@@ -11,6 +11,7 @@ class Doctrine_DbalTestSuite extends Doctrine_TestSuite
protected
function
setUp
()
{
// @todo Make DBMS choice configurable
$pdo
=
new
PDO
(
'sqlite::memory:'
);
$this
->
sharedFixture
[
'connection'
]
=
$this
->
loadConnection
(
$pdo
,
'sqlite_memory'
);
}
...
...
tests/lib/Doctrine_OrmTestCase.php
View file @
ba308004
...
...
@@ -22,6 +22,20 @@ class Doctrine_OrmTestCase extends Doctrine_TestCase
*/
private
static
$_exportedTables
=
array
();
/**
* setUp()
*/
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'
);
}
}
/**
* Loads a data fixture into the database. This method must only be called
* from within the setUp() method of testcases. The database will then be
...
...
tests/lib/Doctrine_OrmTestSuite.php
View file @
ba308004
...
...
@@ -10,6 +10,7 @@ class Doctrine_OrmTestSuite extends Doctrine_TestSuite
{
protected
function
setUp
()
{
// @todo Make DBMS choice configurable
$pdo
=
new
PDO
(
'sqlite::memory:'
);
$this
->
sharedFixture
[
'connection'
]
=
$this
->
loadConnection
(
$pdo
,
'sqlite_memory'
);
}
...
...
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