Added section for ticket test cases.
This commit is contained in:
parent
2b06032183
commit
66863c4304
@ -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
10
tests/Ticket/1Test.php
Normal 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
31
tests/Ticket/AllTests.php
Normal 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();
|
||||
}
|
@ -3,5 +3,4 @@ require_once 'PHPUnit/Framework.php';
|
||||
|
||||
class Doctrine_TestCase extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user