ini_set('max_execution_time', 900); ini_set('date.timezone', 'GMT+0'); if ( ! defined('DOCTRINE_DIR')) { define('DOCTRINE_DIR', dirname(__FILE__) . '/../lib/'); } require_once(DOCTRINE_DIR . 'Doctrine.php'); spl_autoload_register(array('Doctrine', 'autoload')); require_once(dirname(__FILE__) . '/DoctrineTest.php'); spl_autoload_register(array('DoctrineTest','autoload')); $test = new DoctrineTest(); // Ticket Tests // If you write a ticket testcase add it to the bottom of the list, with the ticket number in it $tickets = new GroupTest('Tickets Tests', 'tickets'); $tickets->addTestCase(new Doctrine_Ticket_Njero_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_Ayoub_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_381_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_384_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_424B_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_424C_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_428_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_438_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_480_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_486_TestCase()); $tickets->addTestCase(new Doctrine_Ticket_565_TestCase());
<?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);