diff options
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) { |