1
0
mirror of synced 2024-12-13 06:46:03 +03:00

more changes to the new test setup. introduced separate ticket folders.

This commit is contained in:
romanb 2008-02-09 19:18:15 +00:00
parent 00fa362ebb
commit 45235a15d8
7 changed files with 48 additions and 6 deletions

View File

@ -8,7 +8,6 @@ require_once 'lib/DoctrineTestInit.php';
// Suites
require_once 'Dbal/AllTests.php';
require_once 'Orm/AllTests.php';
require_once 'Ticket/AllTests.php';
class AllTests
{
@ -23,7 +22,6 @@ class AllTests
$suite->addTest(Dbal_AllTests::suite());
$suite->addTest(Orm_AllTests::suite());
$suite->addTest(Ticket_AllTests::suite());
return $suite;
}

View File

@ -7,6 +7,7 @@ require_once 'lib/DoctrineTestInit.php';
// Suites
require_once 'Dbal/Component/AllTests.php';
require_once 'Dbal/Ticket/AllTests.php';
class Dbal_AllTests
{
@ -20,6 +21,7 @@ class Dbal_AllTests
$suite = new Doctrine_DbalTestSuite('Doctrine Dbal');
$suite->addTest(Dbal_Component_AllTests::suite());
$suite->addTest(Dbal_Ticket_AllTests::suite());
return $suite;
}

View File

@ -0,0 +1,10 @@
<?php
require_once 'lib/DoctrineTestInit.php';
class Dbal_Ticket_1Test extends Doctrine_DbalTestCase
{
public function testTest()
{
$this->assertEquals(0, 0);
}
}

View File

@ -0,0 +1,30 @@
<?php
if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'Ticket_AllTests::main');
}
require_once 'lib/DoctrineTestInit.php';
// Tests
require_once 'Dbal/Ticket/1Test.php';
class Dbal_Ticket_AllTests
{
public static function main()
{
PHPUnit_TextUI_TestRunner::run(self::suite());
}
public static function suite()
{
$suite = new Doctrine_TestSuite('Doctrine Orm');
$suite->addTestSuite('Dbal_Ticket_1Test');
return $suite;
}
}
if (PHPUnit_MAIN_METHOD == 'Ticket_AllTests::main') {
Ticket_AllTests::main();
}

View File

@ -7,6 +7,7 @@ require_once 'lib/DoctrineTestInit.php';
// Suites
require_once 'Orm/Component/AllTests.php';
require_once 'Orm/Ticket/AllTests.php';
class Orm_AllTests
{
@ -20,6 +21,7 @@ class Orm_AllTests
$suite = new Doctrine_OrmTestSuite('Doctrine Orm');
$suite->addTest(Orm_Component_AllTests::suite());
$suite->addTest(Orm_Ticket_AllTests::suite());
return $suite;
}

View File

@ -1,7 +1,7 @@
<?php
require_once 'lib/DoctrineTestInit.php';
class Ticket_1Test extends Doctrine_TestCase
class Orm_Ticket_1Test extends Doctrine_OrmTestCase
{
public function testTest()
{

View File

@ -6,9 +6,9 @@ if (!defined('PHPUnit_MAIN_METHOD')) {
require_once 'lib/DoctrineTestInit.php';
// Tests
require_once 'Ticket/1Test.php';
require_once 'Orm/Ticket/1Test.php';
class Ticket_AllTests
class Orm_Ticket_AllTests
{
public static function main()
{
@ -19,7 +19,7 @@ class Ticket_AllTests
{
$suite = new Doctrine_TestSuite('Doctrine Orm');
$suite->addTestSuite('Ticket_1Test');
$suite->addTestSuite('Orm_Ticket_1Test');
return $suite;
}