PEAR2_Pyrus_Developer-0.2.0 › PEAR2_Pyrus_Developer-0.2.0/php/pear2/Pyrus/Developer/CoverageAnalyzer/test.php
- PEAR2_Pyrus_Developer-0.2.0/
- customcommand/
- PEAR2_Pyrus_Developer/
- pear2.php.net/
- PEAR2_Pyrus_Developer/
- data/
- PEAR2_Pyrus_Developer/
- php/
- pear2/
- Autoload.php
- Exception.php
- MultiErrors/
- MultiErrors.php
- Pyrus/
- Developer/
- CoverageAnalyzer/
- Creator/
- PackageFile/
- Runphpt/
- Developer/
- pear2/
- customcommand/
- package.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
namespace {
function __autoload($c)
{
$c = str_replace(array('pear2\Pyrus\Developer\CoverageAnalyzer\\',
'\\'), array('', '/'), $c);
include __DIR__ . '/' . $c . '.php';
}
}
namespace pear2\Pyrus\Developer\CoverageAnalyzer {
$a = new Aggregator($testpath = realpath(__DIR__ . '/../../../../../Pyrus/tests'),
realpath(__DIR__ . '/../../../../../Pyrus/src'),
$testpath . '/pear2coverage.db');
if (file_exists(__DIR__ . '/test')) {
foreach (new \DirectoryIterator(__DIR__ . '/test') as $file) {
if ($file->isDot()) continue;
unlink($file->getPathName());
}
} else {
mkdir(__DIR__ . '/test');
}
echo "Rendering\n";
$a->render(__DIR__ . '/test');
echo "Done rendering\n";
}
?>
EOF
