php-src/ext/spl/tests/SplDoublyLinkedList_pop_params.phpt
2009-05-23 15:38:18 +00:00

14 lines
307 B
PHP

--TEST--
SplDoublyLinkedList::offsetGet() with no parameter passed.
--CREDITS--
PHPNW Test Fest 2009 - Jordan Hatch
--FILE--
<?php
$array = new SplDoublyLinkedList( );
$get = $array->pop( 'param' );
?>
--EXPECTF--
Warning: SplDoublyLinkedList::pop() expects exactly 0 parameters, 1 given in %s on line %d