php-src/ext/standard/tests/array/current_basic.phpt
Steph Fox 833f4150a1 - killed off UEXPECT
- could someone please fix var_export2.phpt? NUL is corrupted, can't fix here
2008-05-26 23:36:10 +00:00

33 lines
696 B
PHP

--TEST--
Test current() function : basic functionality
--FILE--
<?php
/* Prototype : mixed current(array $array_arg)
* Description: Return the element currently pointed to by the internal array pointer
* Source code: ext/standard/array.c
*/
/*
* Test basic functionality of current()
*/
echo "*** Testing current() : basic functionality ***\n";
$array = array ('zero', 'one', 'two', 'three' => 3);
var_dump(current($array));
next($array);
var_dump(current($array));
end($array);
var_dump(current($array));
next($array);
var_dump(current($array));
?>
===DONE===
--EXPECT--
*** Testing current() : basic functionality ***
unicode(4) "zero"
unicode(3) "one"
int(3)
bool(false)
===DONE===