more changes to the new test setup. introduced separate ticket folders.
This commit is contained in:
parent
00fa362ebb
commit
45235a15d8
@ -8,7 +8,6 @@ require_once 'lib/DoctrineTestInit.php';
|
|||||||
// Suites
|
// Suites
|
||||||
require_once 'Dbal/AllTests.php';
|
require_once 'Dbal/AllTests.php';
|
||||||
require_once 'Orm/AllTests.php';
|
require_once 'Orm/AllTests.php';
|
||||||
require_once 'Ticket/AllTests.php';
|
|
||||||
|
|
||||||
class AllTests
|
class AllTests
|
||||||
{
|
{
|
||||||
@ -23,7 +22,6 @@ class AllTests
|
|||||||
|
|
||||||
$suite->addTest(Dbal_AllTests::suite());
|
$suite->addTest(Dbal_AllTests::suite());
|
||||||
$suite->addTest(Orm_AllTests::suite());
|
$suite->addTest(Orm_AllTests::suite());
|
||||||
$suite->addTest(Ticket_AllTests::suite());
|
|
||||||
|
|
||||||
return $suite;
|
return $suite;
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ require_once 'lib/DoctrineTestInit.php';
|
|||||||
|
|
||||||
// Suites
|
// Suites
|
||||||
require_once 'Dbal/Component/AllTests.php';
|
require_once 'Dbal/Component/AllTests.php';
|
||||||
|
require_once 'Dbal/Ticket/AllTests.php';
|
||||||
|
|
||||||
class Dbal_AllTests
|
class Dbal_AllTests
|
||||||
{
|
{
|
||||||
@ -20,6 +21,7 @@ class Dbal_AllTests
|
|||||||
$suite = new Doctrine_DbalTestSuite('Doctrine Dbal');
|
$suite = new Doctrine_DbalTestSuite('Doctrine Dbal');
|
||||||
|
|
||||||
$suite->addTest(Dbal_Component_AllTests::suite());
|
$suite->addTest(Dbal_Component_AllTests::suite());
|
||||||
|
$suite->addTest(Dbal_Ticket_AllTests::suite());
|
||||||
|
|
||||||
return $suite;
|
return $suite;
|
||||||
}
|
}
|
||||||
|
10
tests/Dbal/Ticket/1Test.php
Normal file
10
tests/Dbal/Ticket/1Test.php
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
30
tests/Dbal/Ticket/AllTests.php
Normal file
30
tests/Dbal/Ticket/AllTests.php
Normal 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();
|
||||||
|
}
|
@ -7,6 +7,7 @@ require_once 'lib/DoctrineTestInit.php';
|
|||||||
|
|
||||||
// Suites
|
// Suites
|
||||||
require_once 'Orm/Component/AllTests.php';
|
require_once 'Orm/Component/AllTests.php';
|
||||||
|
require_once 'Orm/Ticket/AllTests.php';
|
||||||
|
|
||||||
class Orm_AllTests
|
class Orm_AllTests
|
||||||
{
|
{
|
||||||
@ -20,6 +21,7 @@ class Orm_AllTests
|
|||||||
$suite = new Doctrine_OrmTestSuite('Doctrine Orm');
|
$suite = new Doctrine_OrmTestSuite('Doctrine Orm');
|
||||||
|
|
||||||
$suite->addTest(Orm_Component_AllTests::suite());
|
$suite->addTest(Orm_Component_AllTests::suite());
|
||||||
|
$suite->addTest(Orm_Ticket_AllTests::suite());
|
||||||
|
|
||||||
return $suite;
|
return $suite;
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once 'lib/DoctrineTestInit.php';
|
require_once 'lib/DoctrineTestInit.php';
|
||||||
|
|
||||||
class Ticket_1Test extends Doctrine_TestCase
|
class Orm_Ticket_1Test extends Doctrine_OrmTestCase
|
||||||
{
|
{
|
||||||
public function testTest()
|
public function testTest()
|
||||||
{
|
{
|
@ -6,9 +6,9 @@ if (!defined('PHPUnit_MAIN_METHOD')) {
|
|||||||
require_once 'lib/DoctrineTestInit.php';
|
require_once 'lib/DoctrineTestInit.php';
|
||||||
|
|
||||||
// Tests
|
// Tests
|
||||||
require_once 'Ticket/1Test.php';
|
require_once 'Orm/Ticket/1Test.php';
|
||||||
|
|
||||||
class Ticket_AllTests
|
class Orm_Ticket_AllTests
|
||||||
{
|
{
|
||||||
public static function main()
|
public static function main()
|
||||||
{
|
{
|
||||||
@ -19,7 +19,7 @@ class Ticket_AllTests
|
|||||||
{
|
{
|
||||||
$suite = new Doctrine_TestSuite('Doctrine Orm');
|
$suite = new Doctrine_TestSuite('Doctrine Orm');
|
||||||
|
|
||||||
$suite->addTestSuite('Ticket_1Test');
|
$suite->addTestSuite('Orm_Ticket_1Test');
|
||||||
|
|
||||||
return $suite;
|
return $suite;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user