1
0
mirror of synced 2024-12-14 15:16:04 +03:00
doctrine2/website/plugins/sfDoctrinePlugin/test/prove.php
2007-08-31 23:41:48 +00:00

41 lines
1.0 KiB
PHP
Executable File

<?php
/*
* This file is part of the sfDoctrine package.
* (c) 2006 Olivier Verdier <Olivier.Verdier@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* @package symfony.plugins
* @subpackage sfDoctrine
* @author Pavel Kunc
* @author Olivier Verdier <Olivier.Verdier@gmail.com>
* @version SVN: $Id: prove.php 2874 2006-11-29 16:48:01Z chtito $
*/
$testsDir = realpath(dirname(__FILE__));
require_once($testsDir.'/bootstrap/unit.php');
$h = new lime_harness(new lime_output_color());
$h->base_dir = $testsDir;
// cache autoload files
testAutoloader::initialize(true);
// unit tests
$h->register_glob($h->base_dir.'/unit/*/*Test.php');
// functional tests
//$h->register_glob($h->base_dir.'/functional/*Test.php');
//$h->register_glob($h->base_dir.'/functional/*/*Test.php');
// other tests
//$h->register_glob($h->base_dir.'/other/*Test.php');
$h->run();
testAutoloader::removeCache();