diff options
author | ctrlaltca <> | 2012-11-18 19:08:27 +0000 |
---|---|---|
committer | ctrlaltca <> | 2012-11-18 19:08:27 +0000 |
commit | 6dff17fee04f8b8a1f35ec8e9afe65ae32b2684c (patch) | |
tree | e8e9f9b44ba7975aca3b96f736daa1728b59fe2c /tests/unit/Data/TDbDataReaderTest.php | |
parent | dd2fbb7ff2ce3d9885c18a978c79294a13ed9025 (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 'tests/unit/Data/TDbDataReaderTest.php')
-rw-r--r-- | tests/unit/Data/TDbDataReaderTest.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/unit/Data/TDbDataReaderTest.php b/tests/unit/Data/TDbDataReaderTest.php index 9d61a330..98aa0385 100644 --- a/tests/unit/Data/TDbDataReaderTest.php +++ b/tests/unit/Data/TDbDataReaderTest.php @@ -1,10 +1,9 @@ <?php -require_once(dirname(__FILE__).'/../phpunit2.php'); - Prado::using('System.Data.*'); -define('TEST_DB_FILE',dirname(__FILE__).'/db/test.db'); +if(!defined('TEST_DB_FILE')) + define('TEST_DB_FILE',dirname(__FILE__).'/db/test.db'); class FooRecord extends TComponent { @@ -31,7 +30,7 @@ class FooRecord extends TComponent /** * @package System.Data.PDO */ -class TDbDataReaderTest extends PHPUnit2_Framework_TestCase +class TDbDataReaderTest extends PHPUnit_Framework_TestCase { private $_connection; |