summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorctrlaltca <>2012-11-18 19:08:27 +0000
committerctrlaltca <>2012-11-18 19:08:27 +0000
commit6dff17fee04f8b8a1f35ec8e9afe65ae32b2684c (patch)
treee8e9f9b44ba7975aca3b96f736daa1728b59fe2c /buildscripts
parentdd2fbb7ff2ce3d9885c18a978c79294a13ed9025 (diff)
Reworked the "test" task in order to make it work again:
- it will use the system PHPUnit installation if available (bundled PHPUnit with prado is no more a choice) - fixed tests in order to be compatible with recent phpunit versions (currently 3.7) - dropped old tests referring to unexisting components (NOTE: this includes what seems a test suite for an older version of SQLMap) Added some svn-ignore properties
Diffstat (limited to 'buildscripts')
-rw-r--r--buildscripts/phing/tasks/PradoTestTask.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/buildscripts/phing/tasks/PradoTestTask.php b/buildscripts/phing/tasks/PradoTestTask.php
index cd2c87f8..a52e7c85 100644
--- a/buildscripts/phing/tasks/PradoTestTask.php
+++ b/buildscripts/phing/tasks/PradoTestTask.php
@@ -1,18 +1,13 @@
<?php
require_once 'phing/Task.php';
-require_once 'phing/tasks/ext/phpunit2/PHPUnit2Task.php';
+require_once 'phing/tasks/ext/phpunit/PHPUnitTask.php';
+require 'PHPUnit/Autoload.php';
/**
* Task to run PRADO unit tests
*/
-class PradoTestTask extends PHPUnit2Task
+class PradoTestTask extends PHPUnitTask
{
- function init()
- {
- $phpunit2_path = realpath(dirname(__FILE__).'/../..');
- set_include_path(get_include_path().PATH_SEPARATOR.$phpunit2_path);
- parent::init();
- }
}
?> \ No newline at end of file