$tickets->addTestCase(new Doctrine_Ticket_1454_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_1461_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_1465_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_1480_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_1483_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_1488_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_1507_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_1513_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_1520_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_1523_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_1527_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_1537_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_1540_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_1543_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_1545_TestCase()); $test->addTestCase($tickets); // Connection Tests (not yet fully tested) $driver = new GroupTest('Driver Tests', 'driver'); $driver->addTestCase(new Doctrine_Connection_Pgsql_TestCase()); $driver->addTestCase(new Doctrine_Connection_Oracle_TestCase()); $driver->addTestCase(new Doctrine_Connection_Sqlite_TestCase()); $driver->addTestCase(new Doctrine_Connection_Mssql_TestCase()); $driver->addTestCase(new Doctrine_Connection_Mysql_TestCase()); $driver->addTestCase(new Doctrine_Connection_Firebird_TestCase()); $driver->addTestCase(new Doctrine_Connection_Informix_TestCase()); $test->addTestCase($driver); // Transaction Tests (FULLY TESTED) $transaction = new GroupTest('Transaction Tests', 'transaction'); $transaction->addTestCase(new Doctrine_Transaction_TestCase());
<?php $ROOT = dirname(__FILE__) . '/../../../../../../'; $_SERVER['DOCTRINE_DIR'] = $ROOT . '_lib/vendors/doctrine/'; require_once $ROOT . '_lib/tests/doctrine/bootstrap.php'; spl_autoload_register(array('Doctrine', 'extensionsAutoload')); Doctrine::setExtensionsPath($ROOT . '_lib/tests/doctrine/'); $manager = Doctrine_Manager::getInstance()->registerExtension('SortableBehavior', '../'); require_once 'SortableTestCase.php'; $test = new DoctrineTest(); $test->addTestCase(new Doctrine_SortableTestCase()); exit($test->run() ? 0 : 1);
<?php if (isset($argv[1])) { $_SERVER['DOCTRINE_DIR'] = $argv[1]; unset($argv[1]); $_SERVER['argv'] = array_values($argv); } if (isset($_REQUEST['doctrine_dir'])) { $_SERVER['DOCTRINE_DIR'] = $_REQUEST['doctrine_dir']; } if (!isset($_SERVER['DOCTRINE_DIR'])) { throw new Exception('You must set the path to the DOCTRINE_DIR'); } require $_SERVER['DOCTRINE_DIR'] . '/tests/bootstrap.php'; spl_autoload_register(array('Doctrine', 'extensionsAutoload')); Doctrine::setExtensionsPath(realpath(dirname(__FILE__) . '/../')); $manager = Doctrine_Manager::getInstance()->registerExtension('Sortable', realpath(dirname(__FILE__) . '/../lib')); $test = new DoctrineTest(); $test->addTestCase(new Doctrine_Template_Sortable_TestCase()); exit($test->run() ? 0 : 1);
<?php if (isset($argv[1])) { $_SERVER['DOCTRINE_DIR'] = $argv[1]; unset($argv[1]); $_SERVER['argv'] = array_values($argv); } if (isset($_REQUEST['doctrine_dir'])) { $_SERVER['DOCTRINE_DIR'] = $_REQUEST['doctrine_dir']; } if (!isset($_SERVER['DOCTRINE_DIR'])) { throw new Exception('You must set the path to the DOCTRINE_DIR'); } require $_SERVER['DOCTRINE_DIR'] . '/tests/bootstrap.php'; spl_autoload_register(array('Doctrine', 'extensionsAutoload')); Doctrine::setExtensionsPath(realpath(dirname(__FILE__) . '/../')); $manager = Doctrine_Manager::getInstance()->registerExtension('Blameable', realpath(dirname(__FILE__) . '/../lib')); $test = new DoctrineTest(); $test->addTestCase(new Doctrine_Template_Blameable_TestCase()); exit($test->run() ? 0 : 1);