echo "\nDone";
---CLEAN--
/* closing the resource handles */
fclose( $resource1 );
closedir( $resource2 );
echo "Done\n";
-?>
---CLEAN--
/* cleaning resource handles */
fclose( $file_handle ); //file resource handle deleted
closedir( $dir_handle ); //dir resource handle deleted
+?>
--EXPECTF--
*** Testing end() on different arrays ***
-- Iteration 1 --
?>
--CLEAN--
<?php
-unlink(__DIR__ . '/sess_'.session_id());
foreach (glob(__DIR__ . '/sess_*') as $filename) {
unlink($filename);
}
var_dump( is_array ($fp, $fp) );
echo "Done\n";
-?>
---CLEAN--
/* close resources */
fclose($fp);
closedir($dfp);
-
+?>
--EXPECTF--
*** Testing is_array() on different type of arrays ***
-- Iteration 1 --
var_dump( is_bool(TRUE, FALSE) );
echo "Done\n";
-?>
---CLEAN--
// close resources
fclose($fp);
closedir($dfp);
+?>
--EXPECTF--
*** Testing is_bool() with valid boolean values ***
-- Iteration 1 --
var_dump( is_real( $floats[0], $floats[1]) );
echo "Done\n";
-?>
---CLEAN--
// close the resources used
fclose($fp);
closedir($dfp);
+?>
--EXPECTF--
*** Testing is_float(), is_double() and is_real() with float values***
-- Iteration 1 --
var_dump( is_long(TRUE, FALSE) );
echo "Done\n";
-?>
---CLEAN--
// close the resources
fclose($fp);
closedir($dfp);
+?>
--EXPECTF--
*** Testing is_int(), is_integer() & is_long() with valid integer values ***
--Iteration 1--
var_dump( is_null(NULL, null) );
echo "Done\n";
-?>
---CLEAN--
// close the resources used
fclose($fp);
closedir($dfp);
+?>
--EXPECTF--
*** Testing is_null() with valid null values ***
-- Iteration 1 --
var_dump( is_numeric("10", "20") );
echo "Done\n";
-?>
---CLEAN--
// close the resources used
fclose($fp);
closedir($dfp);
+?>
--EXPECTF--
*** Testing is_numeric() with valid numeric values ***
-- Iteration 1 --
var_dump( is_object($myClass_object, $myClass_object) );
echo "Done\n";
-?>
---CLEAN--
// close the resources used
fclose($fp);
closedir($dfp);
+?>
--EXPECTF--
*** Testing is_object() with valid objects ***
-- Iteration 1 --
var_dump( is_scalar( new stdclass, new stdclass) );
echo "Done\n";
-?>
---CLEAN--
// close the resources used
fclose($fp);
closedir($dfp);
+?>
--EXPECTF--
*** Testing basic operations ***
-- Iteration 1 --
var_dump( is_string("string", "test") );
echo "Done\n";
-?>
---CLEAN--
// close the resources used
fclose($fp);
closedir($dfp);
+?>
--EXPECTF--
*** Testing is_string() with valid string values ***
-- Iteration 1 --
var_dump( strval( $scalars[0], $scalars[1]) );
echo "Done\n";
-?>
---CLEAN--
// close the resources used
fclose($fp);
closedir($dfp);
+?>
--EXPECTF--
*** Testing str_val() with scalar values***
-- Iteration 1 --