summaryrefslogtreecommitdiff
path: root/tests/UnitTests/framework/Collections/utList.php
diff options
context:
space:
mode:
authorxue <>2005-12-05 01:29:45 +0000
committerxue <>2005-12-05 01:29:45 +0000
commitadada7856a7b25a602d4af680ec2dad01ee0972f (patch)
treeddae6fa3debcd5df3c16f2bbd6d3e13fddf4efdf /tests/UnitTests/framework/Collections/utList.php
parent1c5725b4338be27d8e4e60d54a1bbd627986ec2c (diff)
Diffstat (limited to 'tests/UnitTests/framework/Collections/utList.php')
-rw-r--r--tests/UnitTests/framework/Collections/utList.php10
1 files changed, 5 insertions, 5 deletions
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();
}