diff options
author | ctrlaltca <> | 2013-01-02 14:42:24 +0000 |
---|---|---|
committer | ctrlaltca <> | 2013-01-02 14:42:24 +0000 |
commit | edf2251aca60a970e822079d23933e5b70b26571 (patch) | |
tree | 366b6688efbb03f20f47268bea57859cea673c70 /tests/unit/Collections | |
parent | 8e5f2510bd577e15095e46afc7d0ba6808549bf8 (diff) |
backported all related changes up to 3229 to branch/3.2
Diffstat (limited to 'tests/unit/Collections')
-rw-r--r-- | tests/unit/Collections/TMapTest.php | 8 | ||||
-rw-r--r-- | tests/unit/Collections/TPriorityMapTest.php | 13 |
2 files changed, 10 insertions, 11 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); } diff --git a/tests/unit/Collections/TPriorityMapTest.php b/tests/unit/Collections/TPriorityMapTest.php index 54ff68b7..c7d56243 100644 --- a/tests/unit/Collections/TPriorityMapTest.php +++ b/tests/unit/Collections/TPriorityMapTest.php @@ -1,7 +1,6 @@ <?php -require_once dirname(__FILE__).'/../phpunit.php'; -class MapItem { +class TPriorityMapTest_MapItem { public $data='data'; } @@ -16,11 +15,11 @@ class TPriorityMapTest extends PHPUnit_Framework_TestCase { public function setUp() { // test that TPriorityMap complies with TMap $this->map=new TPriorityMap; - $this->item1=new MapItem; - $this->item2=new MapItem; - $this->item3=new MapItem; - $this->item4=new MapItem; - $this->item5=new MapItem; + $this->item1=new TPriorityMapTest_MapItem; + $this->item2=new TPriorityMapTest_MapItem; + $this->item3=new TPriorityMapTest_MapItem; + $this->item4=new TPriorityMapTest_MapItem; + $this->item5=new TPriorityMapTest_MapItem; $this->map->add('key1',$this->item1); $this->map->add('key2',$this->item2); |