diff options
author | xue <> | 2005-12-17 03:40:49 +0000 |
---|---|---|
committer | xue <> | 2005-12-17 03:40:49 +0000 |
commit | 73512adcb5ed2dca47a03c5e42ec9ebf0a1d9a94 (patch) | |
tree | 1543feaed886cc11430df70aad20611904585351 /tests/UnitTests/framework/Collections | |
parent | b9b2f490cf1f5a4878d11f97c0bfbd2d13fdf929 (diff) |
Changed TList::addAt to TList::insert
Diffstat (limited to 'tests/UnitTests/framework/Collections')
-rw-r--r-- | tests/UnitTests/framework/Collections/utList.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/UnitTests/framework/Collections/utList.php b/tests/UnitTests/framework/Collections/utList.php index a7b81f0a..056f38b1 100644 --- a/tests/UnitTests/framework/Collections/utList.php +++ b/tests/UnitTests/framework/Collections/utList.php @@ -101,16 +101,16 @@ class utList extends UnitTestCase }
- public function testAddAt()
+ public function testInsert()
{
- $this->list->addAt(0,$this->item3);
+ $this->list->insert(0,$this->item3);
$this->assertEqual(3,$this->list->getCount());
$this->assertEqual(2,$this->list->indexOf($this->item2));
$this->assertEqual(0,$this->list->indexOf($this->item3));
$this->assertEqual(1,$this->list->indexOf($this->item1));
try
{
- $this->list->addAt(4,$this->item3);
+ $this->list->insert(4,$this->item3);
$this->fail('exception not raised when adding item at an out-of-range index');
}
catch(TInvalidDataValueException $e)
|