From adada7856a7b25a602d4af680ec2dad01ee0972f Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 5 Dec 2005 01:29:45 +0000 Subject: --- tests/UnitTests/framework/Collections/utList.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/UnitTests/framework/Collections/utList.php') diff --git a/tests/UnitTests/framework/Collections/utList.php b/tests/UnitTests/framework/Collections/utList.php index faebae4c..a7b81f0a 100644 --- a/tests/UnitTests/framework/Collections/utList.php +++ b/tests/UnitTests/framework/Collections/utList.php @@ -113,7 +113,7 @@ class utList extends UnitTestCase $this->list->addAt(4,$this->item3); $this->fail('exception not raised when adding item at an out-of-range index'); } - catch(TIndexOutOfRangeException $e) + catch(TInvalidDataValueException $e) { $this->pass(); } @@ -148,7 +148,7 @@ class utList extends UnitTestCase $this->list->removeAt(2); $this->fail('exception not raised when removing item with invalid index'); } - catch(TIndexOutOfRangeException $e) + catch(TInvalidDataValueException $e) { $this->pass(); } @@ -223,7 +223,7 @@ class utList extends UnitTestCase $a=$this->list[2]; $this->fail('exception not raised when accessing item with out-of-range index'); } - catch(TIndexOutOfRangeException $e) + catch(TInvalidDataValueException $e) { $this->pass(); } @@ -242,7 +242,7 @@ class utList extends UnitTestCase $this->list[5]=$this->item3; $this->fail('exception not raised when setting item at an out-of-range index'); } - catch(TIndexOutOfRangeException $e) + catch(TInvalidDataValueException $e) { $this->pass(); } @@ -251,7 +251,7 @@ class utList extends UnitTestCase unset($this->list[5]); $this->fail('exception not raised when unsetting item at an out-of-range index'); } - catch(TIndexOutOfRangeException $e) + catch(TInvalidDataValueException $e) { $this->pass(); } -- cgit v1.2.3