mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
fd0646e4cf
git-svn-id: http://svn.twig-project.org/trunk@4 93ef8e89-cb99-4229-a87c-7fa0fa45744b
29 lines
734 B
PHP
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);
|