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
a3bc368b
Commit
a3bc368b
authored
Jun 10, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
a361fdaf
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
34 deletions
+55
-34
ManyToManyTestCase.php
tests/Relation/ManyToManyTestCase.php
+0
-18
OneToOneTestCase.php
tests/Relation/OneToOneTestCase.php
+1
-1
TransactionTestCase.php
tests/TransactionTestCase.php
+37
-5
UnitTestCase.php
tests/UnitTestCase.php
+1
-1
run.php
tests/run.php
+16
-9
No files found.
tests/Relation/ManyToManyTestCase.php
View file @
a3bc368b
...
@@ -122,25 +122,7 @@ class Doctrine_Relation_ManyToMany_TestCase extends Doctrine_UnitTestCase {
...
@@ -122,25 +122,7 @@ class Doctrine_Relation_ManyToMany_TestCase extends Doctrine_UnitTestCase {
}
}
$this
->
assertEqual
(
$rel
->
getForeign
(),
'oid'
);
$this
->
assertEqual
(
$rel
->
getForeign
(),
'oid'
);
}
}
/**
public function testManyToManyRelationFetchingWithAliasesAndCustomPKs() {
$q = new Doctrine_Query();
try {
$q->from('M2MTest2 m LEFT JOIN m.RTC5');
$this->pass();
} catch(Doctrine_Exception $e) {
$this->fail();
}
try {
$q->execute();
$this->pass();
} catch(Doctrine_Exception $e) {
$this->fail();
}
}
*/
public
function
testManyToManyRelationFetchingWithAliasesAndCustomPKs2
()
{
public
function
testManyToManyRelationFetchingWithAliasesAndCustomPKs2
()
{
$q
=
new
Doctrine_Query
();
$q
=
new
Doctrine_Query
();
...
...
tests/Relation/OneToOneTestCase.php
View file @
a3bc368b
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
*/
*/
/**
/**
* Doctrine_
Connection
_TestCase
* Doctrine_
Relation_OneToOne
_TestCase
*
*
* @package Doctrine
* @package Doctrine
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
...
...
tests/TransactionTestCase.php
View file @
a3bc368b
<?php
<?php
class
Doctrine_Transaction_TestCase
extends
Doctrine_Driver_UnitTestCase
{
/*
public
function
__construct
()
{
* $Id$
parent
::
__construct
(
'sqlite'
,
true
);
*
}
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* This software consists of voluntary contributions made by many individuals
* and is licensed under the LGPL. For more information, see
* <http://www.phpdoctrine.com>.
*/
/**
/**
* Doctrine_Transaction_TestCase
*
* @package Doctrine
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @category Object Relational Mapping
* @link www.phpdoctrine.com
* @since 1.0
* @version $Revision$
*/
class
Doctrine_Transaction_TestCase
extends
Doctrine_UnitTestCase
{
public
function
testInit
()
{
$this
->
transaction
=
new
Doctrine_Transaction_Mock
();
}
public
function
testCreateSavepointIsOnlyImplementedAtDriverLevel
()
{
public
function
testCreateSavepointIsOnlyImplementedAtDriverLevel
()
{
try
{
try
{
$this
->
transaction
->
beginTransaction
(
'point'
);
$this
->
transaction
->
beginTransaction
(
'point'
);
...
@@ -20,7 +52,7 @@ class Doctrine_Transaction_TestCase extends Doctrine_Driver_UnitTestCase {
...
@@ -20,7 +52,7 @@ class Doctrine_Transaction_TestCase extends Doctrine_Driver_UnitTestCase {
$this
->
pass
();
$this
->
pass
();
}
}
}
}
*/
public
function
testRollbackSavepointIsOnlyImplementedAtDriverLevel
()
{
public
function
testRollbackSavepointIsOnlyImplementedAtDriverLevel
()
{
try
{
try
{
$this
->
transaction
->
beginTransaction
();
$this
->
transaction
->
beginTransaction
();
...
...
tests/UnitTestCase.php
View file @
a3bc368b
...
@@ -97,7 +97,7 @@ class Doctrine_UnitTestCase extends UnitTestCase {
...
@@ -97,7 +97,7 @@ class Doctrine_UnitTestCase extends UnitTestCase {
if
(
$this
->
driverName
==
'main'
)
{
if
(
$this
->
driverName
==
'main'
)
{
$this
->
dbh
=
Doctrine_Db
::
getConnection
(
'sqlite::memory:'
);
$this
->
dbh
=
Doctrine_Db
::
getConnection
(
'sqlite::memory:'
);
}
else
{
}
else
{
$this
->
dbh
=
$this
->
adapter
=
new
Adapter
Mock
(
$this
->
driverName
);
$this
->
dbh
=
$this
->
adapter
=
new
Doctrine_Adapter_
Mock
(
$this
->
driverName
);
}
}
$this
->
conn
=
$this
->
connection
=
$this
->
manager
->
openConnection
(
$this
->
dbh
,
$this
->
driverName
);
$this
->
conn
=
$this
->
connection
=
$this
->
manager
->
openConnection
(
$this
->
dbh
,
$this
->
driverName
);
...
...
tests/run.php
View file @
a3bc368b
...
@@ -65,7 +65,7 @@ $test = new GroupTest('Doctrine Framework Unit Tests');
...
@@ -65,7 +65,7 @@ $test = new GroupTest('Doctrine Framework Unit Tests');
// DATABASE ABSTRACTION tests
// DATABASE ABSTRACTION tests
/**
/**
*/
// Connection drivers (not yet fully tested)
// Connection drivers (not yet fully tested)
$test
->
addTestCase
(
new
Doctrine_Connection_Pgsql_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Connection_Pgsql_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Connection_Oracle_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Connection_Oracle_TestCase
());
...
@@ -116,7 +116,6 @@ $test->addTestCase(new Doctrine_Export_Mssql_TestCase());
...
@@ -116,7 +116,6 @@ $test->addTestCase(new Doctrine_Export_Mssql_TestCase());
$test
->
addTestCase
(
new
Doctrine_Export_Pgsql_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Export_Pgsql_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Export_Oracle_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Export_Oracle_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Export_Sqlite_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Export_Sqlite_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Export_Mysql_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Export_Mysql_TestCase
());
$test
->
addTestCase
(
new
Doctrine_CascadingDelete_TestCase
());
$test
->
addTestCase
(
new
Doctrine_CascadingDelete_TestCase
());
...
@@ -141,9 +140,9 @@ $test->addTestCase(new Doctrine_Expression_Mssql_TestCase());
...
@@ -141,9 +140,9 @@ $test->addTestCase(new Doctrine_Expression_Mssql_TestCase());
$test
->
addTestCase
(
new
Doctrine_Expression_Pgsql_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Expression_Pgsql_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Expression_Oracle_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Expression_Oracle_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Expression_Sqlite_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Expression_Sqlite_TestCase
());
*/
// Core
// Core
/** */
$test
->
addTestCase
(
new
Doctrine_Access_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Access_TestCase
());
//$test->addTestCase(new Doctrine_Configurable_TestCase());
//$test->addTestCase(new Doctrine_Configurable_TestCase());
...
@@ -163,8 +162,12 @@ $test->addTestCase(new Doctrine_Relation_TestCase());
...
@@ -163,8 +162,12 @@ $test->addTestCase(new Doctrine_Relation_TestCase());
//$test->addTestCase(new Doctrine_Relation_Access_TestCase());
//$test->addTestCase(new Doctrine_Relation_Access_TestCase());
//$test->addTestCase(new Doctrine_Relation_ManyToMany_TestCase());
//$test->addTestCase(new Doctrine_Relation_ManyToMany_TestCase());
//$test->addTestCase(new Doctrine_Relation_Nest_TestCase());
$test
->
addTestCase
(
new
Doctrine_Relation_OneToOne_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Relation_OneToOne_TestCase
());
//$test->addTestCase(new Doctrine_Relation_Parser_TestCase());
$test
->
addTestCase
(
new
Doctrine_Relation_Parser_TestCase
());
// Datatypes
// Datatypes
$test
->
addTestCase
(
new
Doctrine_Enum_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Enum_TestCase
());
...
@@ -243,7 +246,6 @@ $test->addTestCase(new Doctrine_Query_Join_TestCase());
...
@@ -243,7 +246,6 @@ $test->addTestCase(new Doctrine_Query_Join_TestCase());
$test
->
addTestCase
(
new
Doctrine_Query_Having_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Query_Having_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Query_Where_TestCase
());
$test
->
addTestCase
(
new
Doctrine_RawSql_TestCase
());
$test
->
addTestCase
(
new
Doctrine_RawSql_TestCase
());
...
@@ -253,9 +255,9 @@ $test->addTestCase(new Doctrine_Query_Subquery_TestCase());
...
@@ -253,9 +255,9 @@ $test->addTestCase(new Doctrine_Query_Subquery_TestCase());
$test
->
addTestCase
(
new
Doctrine_Query_AggregateValue_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Query_AggregateValue_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Query_Select_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Query_From_TestCase
());
$test
->
addTestCase
(
new
Doctrine_NewCore_TestCase
());
$test
->
addTestCase
(
new
Doctrine_NewCore_TestCase
());
// Record
// Record
...
@@ -271,8 +273,13 @@ $test->addTestCase(new Doctrine_Collection_Snapshot_TestCase());
...
@@ -271,8 +273,13 @@ $test->addTestCase(new Doctrine_Collection_Snapshot_TestCase());
$test
->
addTestCase
(
new
Doctrine_Hydrate_FetchMode_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Hydrate_FetchMode_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Query_Where_TestCase
());
$test
->
addTestCase
(
new
Doctrine_Query_From_TestCase
());
$test
->
addTestCase
(
new
Doctrine_AuditLog_TestCase
());
//$test->addTestCase(new Doctrine_AuditLog
_TestCase());
$test
->
addTestCase
(
new
Doctrine_Query_Select
_TestCase
());
// Cache tests
// Cache tests
//$test->addTestCase(new Doctrine_Cache_Query_SqliteTestCase());
//$test->addTestCase(new Doctrine_Cache_Query_SqliteTestCase());
...
...
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