php-src/ext/posix/tests/posix_strerror_error.phpt
Nikita Popov c5401854fc Run tidy
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
2020-09-18 14:28:32 +02:00

22 lines
532 B
PHP

--TEST--
Test posix_strerror() function : error conditions
--SKIPIF--
<?php
if(!extension_loaded("posix")) print "skip - POSIX extension not loaded";
?>
--FILE--
<?php
echo "*** Testing posix_strerror() : error conditions ***\n";
echo "\n-- Testing posix_strerror() function with invalid error number --\n";
$errno = -999;
echo gettype( posix_strerror($errno) )."\n";
echo "Done";
?>
--EXPECT--
*** Testing posix_strerror() : error conditions ***
-- Testing posix_strerror() function with invalid error number --
string
Done