blob: 4d6317b51e77f873a237aa31a57c4079745bf69a (
plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<?php
require_once 'phing/Task.php';
require_once 'phing/tasks/ext/simpletest/SimpleTestTask.php';
/**
* Task to run PRADO unit tests
*/
class PradoSimpleTestTask extends SimpleTestTask
{
private $_appdir;
public function setAppdir($value)
{
$this->_appdir=$value;
}
function init()
{
$tools= realpath(dirname(__FILE__).'/../../../tests/test_tools/');
include_once "$tools/unit_tests.php";
if (!class_exists('SimpleReporter',false))
throw new BuildException("SimpleTestTask depends on SimpleTest package being installed.", $this->getLocation());
require_once 'phing/tasks/ext/simpletest/SimpleTestCountResultFormatter.php';
require_once 'phing/tasks/ext/simpletest/SimpleTestFormatterElement.php';
}
function main()
{
if($this->_appdir)
{
$app = new TShellApplication($this->_appdir);
$app->run();
}
parent::main();
}
}
?>
|