diff options
Diffstat (limited to 'ext/spl/tests/arrayObject___construct_error2.phpt')
-rw-r--r-- | ext/spl/tests/arrayObject___construct_error2.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/spl/tests/arrayObject___construct_error2.phpt b/ext/spl/tests/arrayObject___construct_error2.phpt index 850a2cb3fc..d075516725 100644 --- a/ext/spl/tests/arrayObject___construct_error2.phpt +++ b/ext/spl/tests/arrayObject___construct_error2.phpt @@ -13,10 +13,10 @@ Class C implements Iterator { try { var_dump(new ArrayObject(new stdClass, 0, "C", "extra")); -} catch (InvalidArgumentException $e) { +} catch (TypeException $e) { echo $e->getMessage() . "(" . $e->getLine() . ")\n"; } ?> --EXPECTF-- Too many arguments: -ArrayObject::__construct() expects at most 3 parameters, 4 given(12)
\ No newline at end of file +ArrayObject::__construct() expects at most 3 parameters, 4 given(12) |