mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
14 lines
319 B
PHP
14 lines
319 B
PHP
--TEST--
|
|
Check that SplDoublyLinkedList::add throws an exception with an invalid offset argument
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
$dll = new SplDoublyLinkedList();
|
|
var_dump($dll->add(NULL,2));
|
|
} catch (OutOfRangeException $e) {
|
|
echo "Exception: ".$e->getMessage()."\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
Exception: Offset invalid or out of range
|