Commit 66863c43 authored by jwage's avatar jwage

Added section for ticket test cases.

parent 2b060321
......@@ -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;
}
}
......
<?php
require_once 'lib/Doctrine_TestCase.php';
class Ticket_1Test extends Doctrine_TestCase
{
public function testTest()
{
$this->assertEquals(0, 0);
}
}
\ No newline at end of file
<?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();
}
\ No newline at end of file
......@@ -3,5 +3,4 @@ require_once 'PHPUnit/Framework.php';
class Doctrine_TestCase extends PHPUnit_Framework_TestCase
{
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment