Initial entry of new test structure.
This commit is contained in:
parent
cbd33b986b
commit
2b06032183
9 changed files with 191 additions and 0 deletions
33
tests/AllTests.php
Normal file
33
tests/AllTests.php
Normal 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
31
tests/Dbal/AllTests.php
Normal 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();
|
||||
}
|
31
tests/Dbal/Component/AllTests.php
Normal file
31
tests/Dbal/Component/AllTests.php
Normal 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();
|
||||
}
|
10
tests/Dbal/Component/TestTest.php
Normal file
10
tests/Dbal/Component/TestTest.php
Normal 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
31
tests/Orm/AllTests.php
Normal 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();
|
||||
}
|
31
tests/Orm/Component/AllTests.php
Normal file
31
tests/Orm/Component/AllTests.php
Normal 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();
|
||||
}
|
10
tests/Orm/Component/TestTest.php
Normal file
10
tests/Orm/Component/TestTest.php
Normal 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);
|
||||
}
|
||||
}
|
7
tests/lib/Doctrine_TestCase.php
Normal file
7
tests/lib/Doctrine_TestCase.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
require_once 'PHPUnit/Framework.php';
|
||||
|
||||
class Doctrine_TestCase extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
}
|
7
tests/lib/Doctrine_TestSuite.php
Normal file
7
tests/lib/Doctrine_TestSuite.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
require_once 'PHPUnit/Framework.php';
|
||||
|
||||
class Doctrine_TestSuite extends PHPUnit_Framework_TestSuite
|
||||
{
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue