diff options
Diffstat (limited to 'ext/posix/tests/posix_mkfifo_wrongparams.phpt')
-rw-r--r-- | ext/posix/tests/posix_mkfifo_wrongparams.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/posix/tests/posix_mkfifo_wrongparams.phpt b/ext/posix/tests/posix_mkfifo_wrongparams.phpt new file mode 100644 index 000000000..0d4df7b6e --- /dev/null +++ b/ext/posix/tests/posix_mkfifo_wrongparams.phpt @@ -0,0 +1,21 @@ +--TEST-- +Test parameter validation in posix_mkfifo(). +--CREDITS-- +Till Klampaeckel, till@php.net +TestFest Berlin 2009 +--SKIPIF-- +<?php +if (!extension_loaded('posix')) { + die('SKIP The posix extension is not loaded.'); +} +?> +--FILE-- +<?php +posix_mkfifo(null); +var_dump(posix_mkfifo(null, 0644)); +?> +===DONE=== +--EXPECTF-- +Warning: posix_mkfifo() expects exactly 2 parameters, 1 given in %s on line %d +bool(false) +===DONE=== |