Files
Twig/test/bin/prove.php
T
fabien fd0646e4cf initial commit
git-svn-id: http://svn.twig-project.org/trunk@4 93ef8e89-cb99-4229-a87c-7fa0fa45744b
2009-10-07 21:21:11 +00:00

29 lines
734 B
PHP

<?php
/*
* This file is part of Twig.
*
* (c) Fabien Potencier
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
require_once(dirname(__FILE__).'/../lib/lime/LimeAutoloader.php');
LimeAutoloader::register();
$suite = new LimeTestSuite(array(
'force_colors' => isset($argv) && in_array('--color', $argv),
'base_dir' => realpath(dirname(__FILE__).'/..'),
));
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator(dirname(__FILE__).'/../unit'), RecursiveIteratorIterator::LEAVES_ONLY) as $file)
{
if (preg_match('/Test\.php$/', $file))
{
$suite->register($file->getRealPath());
}
}
exit($suite->run() ? 0 : 1);