| 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 |
define('SYMFONY_LIB_DIR', realpath(dirname(__FILE__).'/../../../..'));
|
|
|
12 |
|
|
|
13 |
require(SYMFONY_LIB_DIR.'/vendor/lime/lime.php');
|
|
|
14 |
require(SYMFONY_LIB_DIR.'/util/sfFinder.class.php');
|
|
|
15 |
|
|
|
16 |
$h = new lime_harness();
|
|
|
17 |
$h->base_dir = realpath(dirname(__FILE__).'/..');
|
|
|
18 |
|
|
|
19 |
// unit tests
|
|
|
20 |
$h->register_glob($h->base_dir.'/unit/*/*Test.php');
|
|
|
21 |
$h->register_glob($h->base_dir.'/unit/*/*/*Test.php');
|
|
|
22 |
|
|
|
23 |
// functional tests
|
|
|
24 |
$h->register_glob($h->base_dir.'/functional/*Test.php');
|
|
|
25 |
$h->register_glob($h->base_dir.'/functional/*/*Test.php');
|
|
|
26 |
|
|
|
27 |
$c = new lime_coverage($h);
|
|
|
28 |
$c->extension = '.class.php';
|
|
|
29 |
$c->verbose = false;
|
|
|
30 |
$c->base_dir = realpath(dirname(__FILE__).'/../lib');
|
|
|
31 |
|
|
|
32 |
$finder = sfFinder::type('file')->name('*.php')->prune('vendor')->prune('test')->prune('data');
|
|
|
33 |
$c->register($finder->in($c->base_dir));
|
|
|
34 |
$c->run();
|