summaryrefslogtreecommitdiff
path: root/tests/unit/Collections/TMapTest.php
diff options
context:
space:
mode:
authorctrlaltca <>2012-11-18 19:08:27 +0000
committerctrlaltca <>2012-11-18 19:08:27 +0000
commit6dff17fee04f8b8a1f35ec8e9afe65ae32b2684c (patch)
treee8e9f9b44ba7975aca3b96f736daa1728b59fe2c /tests/unit/Collections/TMapTest.php
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 'tests/unit/Collections/TMapTest.php')
-rw-r--r--tests/unit/Collections/TMapTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/Collections/TMapTest.php b/tests/unit/Collections/TMapTest.php
index c6a2172c..81062855 100644
--- a/tests/unit/Collections/TMapTest.php
+++ b/tests/unit/Collections/TMapTest.php
@@ -1,7 +1,7 @@
<?php
require_once dirname(__FILE__).'/../phpunit.php';
-class MapItem {
+class TMapTest_MapItem {
public $data='data';
}
@@ -14,9 +14,9 @@ class TMapTest extends PHPUnit_Framework_TestCase {
public function setUp() {
$this->map=new TMap;
- $this->item1=new MapItem;
- $this->item2=new MapItem;
- $this->item3=new MapItem;
+ $this->item1=new TMapTest_MapItem;
+ $this->item2=new TMapTest_MapItem;
+ $this->item3=new TMapTest_MapItem;
$this->map->add('key1',$this->item1);
$this->map->add('key2',$this->item2);
}