mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
fixing incorrect --CLEAN-- sections
This commit is contained in:
parent
679c6298e3
commit
c80613cce2
@ -125,7 +125,6 @@ var_dump( count(array(), "") );
|
||||
|
||||
echo "\nDone";
|
||||
|
||||
--CLEAN--
|
||||
/* closing the resource handles */
|
||||
fclose( $resource1 );
|
||||
closedir( $resource2 );
|
||||
|
@ -123,13 +123,12 @@ var_dump( end($null_array) );
|
||||
|
||||
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 --
|
||||
|
@ -26,7 +26,6 @@ ob_end_clean();
|
||||
?>
|
||||
--CLEAN--
|
||||
<?php
|
||||
unlink(__DIR__ . '/sess_'.session_id());
|
||||
foreach (glob(__DIR__ . '/sess_*') as $filename) {
|
||||
unlink($filename);
|
||||
}
|
||||
|
@ -106,12 +106,10 @@ var_dump( is_array() );
|
||||
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 --
|
||||
|
@ -135,13 +135,12 @@ var_dump( is_bool() );
|
||||
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 --
|
||||
|
@ -139,13 +139,12 @@ var_dump( is_double( $floats[0], $floats[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 --
|
||||
|
@ -144,13 +144,12 @@ var_dump( is_integer(TRUE, FALSE) );
|
||||
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--
|
||||
|
@ -135,13 +135,12 @@ var_dump( is_null() );
|
||||
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 --
|
||||
|
@ -154,13 +154,12 @@ var_dump( is_numeric() );
|
||||
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 --
|
||||
|
@ -146,13 +146,12 @@ var_dump( is_object() );
|
||||
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 --
|
||||
|
@ -114,13 +114,12 @@ var_dump( is_scalar( $scalar_variables[2], $scalar_variables[2]) );
|
||||
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 --
|
||||
|
@ -148,13 +148,12 @@ var_dump( is_string() );
|
||||
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 --
|
||||
|
@ -149,13 +149,12 @@ var_dump( strval() );
|
||||
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 --
|
||||
|
Loading…
Reference in New Issue
Block a user