1
0
Fork 0
mirror of synced 2025-04-01 20:36:14 +03:00

Initial entry of new test structure.

This commit is contained in:
jwage 2008-02-08 19:35:27 +00:00
parent cbd33b986b
commit 2b06032183
9 changed files with 191 additions and 0 deletions

33
tests/AllTests.php Normal file
View file

@ -0,0 +1,33 @@
<?php
if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'AllTests::main');
}
require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once 'lib/Doctrine_TestSuite.php';
require_once 'Dbal/AllTests.php';
require_once 'Orm/AllTests.php';
class AllTests
{
public static function main()
{
PHPUnit_TextUI_TestRunner::run(self::suite());
}
public static function suite()
{
$suite = new Doctrine_TestSuite('Doctrine');
$suite->addTest(Dbal_AllTests::suite());
$suite->addTest(Orm_AllTests::suite());
return $suite;
}
}
if (PHPUnit_MAIN_METHOD == 'AllTests::main') {
AllTests::main();
}

31
tests/Dbal/AllTests.php Normal file
View file

@ -0,0 +1,31 @@
<?php
if (!defined('PHPUnit_MAIN_METHOD')) {
define('PHPUnit_MAIN_METHOD', 'Dbal_AllTests::main');
}
require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';
require_once 'lib/Doctrine_TestSuite.php';
require_once 'Dbal/Component/AllTests.php';
class Dbal_AllTests
{
public static function main()
{
PHPUnit_TextUI_TestRunner::run(self::suite());
}
public static function suite()
{
$suite = new Doctrine_TestSuite('Doctrine Dbal');
$suite->addTest(Dbal_Component_AllTests::suite());
return $suite;
}
}
if (PHPUnit_MAIN_METHOD == 'Dbal_AllTests::main') {
Dbal_AllTests::main();
}

View file

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

View file

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

31
tests/Orm/AllTests.php Normal file
View file

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

View file

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

View file

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

View file

@ -0,0 +1,7 @@
<?php
require_once 'PHPUnit/Framework.php';
class Doctrine_TestCase extends PHPUnit_Framework_TestCase
{
}

View file

@ -0,0 +1,7 @@
<?php
require_once 'PHPUnit/Framework.php';
class Doctrine_TestSuite extends PHPUnit_Framework_TestSuite
{
}