| 1 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/*
|
|
|
4 |
* This file is part of the symfony package.
|
|
|
5 |
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
|
|
|
6 |
*
|
|
|
7 |
* For the full copyright and license information, please view the LICENSE
|
|
|
8 |
* file that was distributed with this source code.
|
|
|
9 |
*/
|
|
|
10 |
|
|
|
11 |
require_once dirname(__FILE__).'/../../../../../lib/vendor/lime/lime.php';
|
|
|
12 |
require_once dirname(__FILE__).'/../../../../../lib/util/sfToolkit.class.php';
|
|
|
13 |
require_once dirname(__FILE__).'/../../../../../lib/util/sfFinder.class.php';
|
|
|
14 |
|
|
|
15 |
if ($files = glob(sfToolkit::getTmpDir().DIRECTORY_SEPARATOR.'/sf_autoload_unit_*'))
|
|
|
16 |
{
|
|
|
17 |
foreach ($files as $file)
|
|
|
18 |
{
|
|
|
19 |
unlink($file);
|
|
|
20 |
}
|
|
|
21 |
}
|
|
|
22 |
|
|
|
23 |
$h = new lime_harness(new lime_output_color);
|
|
|
24 |
$h->base_dir = realpath(dirname(__FILE__).'/..');
|
|
|
25 |
|
|
|
26 |
$h->register(sfFinder::type('file')->prune('fixtures')->name('*Test.php')->in(array(
|
|
|
27 |
$h->base_dir.'/unit',
|
|
|
28 |
$h->base_dir.'/functional',
|
|
|
29 |
)));
|
|
|
30 |
|
|
|
31 |
exit($h->run() ? 0 : 1);
|