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

Added section for ticket test cases.

This commit is contained in:
jwage 2008-02-08 20:50:05 +00:00
parent 2b06032183
commit 66863c4304
4 changed files with 44 additions and 2 deletions

View File

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

10
tests/Ticket/1Test.php Normal file
View File

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

31
tests/Ticket/AllTests.php Normal file
View File

@ -0,0 +1,31 @@
<?php
if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'Ticket_AllTests::main');
}
require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once 'lib/Doctrine_TestSuite.php';
require_once 'Ticket/1Test.php';
class Ticket_AllTests
{
public static function main()
{
PHPUnit_TextUI_TestRunner::run(self::suite());
}
public static function suite()
{
$suite = new Doctrine_TestSuite('Doctrine Orm');
$suite->addTestSuite('Ticket_1Test');
return $suite;
}
}
if (PHPUnit_MAIN_METHOD == 'Ticket_AllTests::main') {
Ticket_AllTests::main();
}

View File

@ -3,5 +3,4 @@ require_once 'PHPUnit/Framework.php';
class Doctrine_TestCase extends PHPUnit_Framework_TestCase
{
}