diff options
author | knut <> | 2006-02-02 18:11:33 +0000 |
---|---|---|
committer | knut <> | 2006-02-02 18:11:33 +0000 |
commit | 19519f250ef08d19f0ef923552e177dd0f1c2474 (patch) | |
tree | 7187737a128c69c1dbf2c820f58bdf37322225b2 /tests/unit | |
parent | 6b3c986a0a4634335b58ddf83a34032b5b783fce (diff) |
changed test for item() to itemAt()
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/Collections/TListTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/Collections/TListTest.php b/tests/unit/Collections/TListTest.php index a64e9da2..c9190da6 100644 --- a/tests/unit/Collections/TListTest.php +++ b/tests/unit/Collections/TListTest.php @@ -49,14 +49,14 @@ class TListTest extends PHPUnit2_Framework_TestCase { $this->assertEquals(3,$this->list->indexOf($this->item3)); } - public function testInsert() { - $this->list->insert(0,$this->item3); + public function testInsertAt() { + $this->list->insertAt(0,$this->item3); $this->assertEquals(3,$this->list->getCount()); $this->assertEquals(2,$this->list->indexOf($this->item2)); $this->assertEquals(0,$this->list->indexOf($this->item3)); $this->assertEquals(1,$this->list->indexOf($this->item1)); try { - $this->list->insert(4,$this->item3); + $this->list->insertAt(4,$this->item3); $this->fail('exception not raised when adding item at an out-of-range index'); } catch(TInvalidDataValueException $e) { |