php-src/ext/standard/tests/file/umask_error.phpt
Raghubansh Kumar d62163292f Fix for fill_file() in file.inc
New testcases for readfile() and umask() functions
2007-07-20 18:07:02 +00:00

27 lines
491 B
PHP

--TEST--
Test umask() function: error conditions
--SKIPIF--
<?php
if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip.. only for Linux');
}
?>
--FILE--
<?
/* Prototype: int umask ( [int $mask] );
Description: Changes the current umask
*/
echo "*** Testing umask() : error conditions ***\n";
var_dump( umask(0000, true) ); // args > expected
echo "Done\n";
?>
--EXPECTF--
*** Testing umask() : error conditions ***
Warning: Wrong parameter count for umask() in %s on line %d
NULL
Done