Update of /cvsroot/binaryphp/binaryphp/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv29550/tests
Added Files:
count.php implode.php in_array.php ksort.php
Log Message:
added some unit tests
--- NEW FILE: count.php ---
<?php
$array = array(1, 2, 3, 4);
echo count($array);
?>
--- NEW FILE: implode.php ---
<?php
$array = array('This', 'is', 'a', 'test.');
echo implode(', ' $array);
?>
--- NEW FILE: in_array.php ---
<?php
$array = array(1, 2, 3, 4);
if(in_array(1, $array))
echo 'Element found.';
?>
--- NEW FILE: ksort.php ---
<?php
$fruits = array('d' => 'lemon',
'a' => 'orange',
'b' => 'banana',
'c' => 'apple');
ksort ($fruits);
echo implode("\n", $fruits);
?>
|