Update of /cvsroot/binaryphp/binaryphp/tests/base
In directory sc8-pr-cvs1:/tmp/cvs-serv5374/tests/base
Added Files:
is_array.php is_bool.php is_int.php is_null.php
is_resource.php is_string.php var_dump.php
Log Message:
Added more tests. Now have all tests for the 'arrays' and 'base' section done.
--- NEW FILE: is_array.php ---
<?php
$array = array(1, 2, 3, 4);
if(is_array($array))
echo 'Thats right!', "\n";
?>
--- NEW FILE: is_bool.php ---
<?php
$bool = false;
if(is_bool($bool))
echo 'Thats right!', "\n";
?>
--- NEW FILE: is_int.php ---
<?php
$int = 4;
if(is_int($int))
echo 'Thats right!', "\n";
?>
--- NEW FILE: is_null.php ---
<?php
$null = null;
if(is_null($null))
echo 'Thats right!', "\n";
?>
--- NEW FILE: is_resource.php ---
<?php
$resource = socket_create(AF_INET, SOCK_STREAM, 0);
if(is_resource($resource))
echo 'Thats right!', "\n";
?>
--- NEW FILE: is_string.php ---
<?php
$string = 'Text';
if(is_string($string))
echo 'Thats right!', "\n";
?>
--- NEW FILE: var_dump.php ---
<?php
$array = array(1, 'str' => 'test', 'int' => 2);
var_dump($array);
?>
|