felipe Wed Dec 3 16:27:50 2008 UTC
Added files: (Branch: PHP_5_2)
/php-src/ext/posix/tests posix_getcwd.phpt posix_getgrnam.phpt
posix_getpwnam.phpt posix_getrlimit.phpt
posix_initgroups.phpt posix_isatty.phpt
posix_mknod.phpt
Log:
- Coverage++
http://cvs.php.net/viewvc.cgi/php-src/ext/posix/tests/posix_getcwd.phpt?view=markup&rev=1.1
Index: php-src/ext/posix/tests/posix_getcwd.phpt
+++ php-src/ext/posix/tests/posix_getcwd.phpt
--TEST--
posix_getcwd(): Basic tests
--SKIP--
<?php if (!posix_mknod('posix_getcwd')) die('skip posix_getcwd() not found'); ?>
--FILE--
<?php
var_dump(posix_getcwd());
var_dump(posix_getcwd(1));
?>
--EXPECTF--
string(%d) "%s"
Warning: posix_getcwd() expects exactly 0 parameters, 1 given in %s on line %d
NULL
http://cvs.php.net/viewvc.cgi/php-src/ext/posix/tests/posix_getgrnam.phpt?view=markup&rev=1.1
Index: php-src/ext/posix/tests/posix_getgrnam.phpt
+++ php-src/ext/posix/tests/posix_getgrnam.phpt
--TEST--
posix_getgrnam(): Basic tests
--SKIP--
<?php if (!function_exists('posix_getgrnam')) die('skip posix_getgrnam() not
found'); ?>
--FILE--
<?php
var_dump(posix_getgrnam(NULL));
var_dump(posix_getgrnam(1));
var_dump(posix_getgrnam(''));
?>
--EXPECT--
bool(false)
bool(false)
bool(false)
http://cvs.php.net/viewvc.cgi/php-src/ext/posix/tests/posix_getpwnam.phpt?view=markup&rev=1.1
Index: php-src/ext/posix/tests/posix_getpwnam.phpt
+++ php-src/ext/posix/tests/posix_getpwnam.phpt
--TEST--
posix_getpwnam(): Basic tests
--SKIP--
<?php if (!function_exists('posix_getpwnam')) die('skip posix_getpwnam() not
found'); ?>
--FILE--
<?php
var_dump(posix_getpwnam(1));
var_dump(posix_getpwnam(''));
var_dump(posix_getpwnam(NULL));
?>
--EXPECT--
bool(false)
bool(false)
bool(false)
http://cvs.php.net/viewvc.cgi/php-src/ext/posix/tests/posix_getrlimit.phpt?view=markup&rev=1.1
Index: php-src/ext/posix/tests/posix_getrlimit.phpt
+++ php-src/ext/posix/tests/posix_getrlimit.phpt
--TEST--
posix_getrlimit(): Basic tests
--SKIP--
<?php if (!function_exists('posix_getrlimit')) die('skip posix_getrlimit() not
found'); ?>
--FILE--
<?php
var_dump(posix_getrlimit());
?>
--EXPECTF--
array(%d) {
%a
}
http://cvs.php.net/viewvc.cgi/php-src/ext/posix/tests/posix_initgroups.phpt?view=markup&rev=1.1
Index: php-src/ext/posix/tests/posix_initgroups.phpt
+++ php-src/ext/posix/tests/posix_initgroups.phpt
--TEST--
posix_initgroups(): Basic tests
--SKIP--
<?php if (!function_exists('posix_initgroups')) die('skip posix_initgroups()
not found'); ?>
--FILE--
<?php
var_dump(posix_initgroups('foo', 'bar'));
var_dump(posix_initgroups(NULL, NULL));
?>
--EXPECTF--
Warning: posix_initgroups() expects parameter 2 to be long, string given in %s
on line %d
bool(false)
bool(false)
http://cvs.php.net/viewvc.cgi/php-src/ext/posix/tests/posix_isatty.phpt?view=markup&rev=1.1
Index: php-src/ext/posix/tests/posix_isatty.phpt
+++ php-src/ext/posix/tests/posix_isatty.phpt
--TEST--
posix_isatty(): Basic tests
--SKIP--
<?php if (!posix_mknod('posix_isatty')) die('skip posix_isatty() not found'); ?>
--FILE--
<?php
var_dump(posix_isatty(0));
?>
--EXPECTF--
bool(%s)
http://cvs.php.net/viewvc.cgi/php-src/ext/posix/tests/posix_mknod.phpt?view=markup&rev=1.1
Index: php-src/ext/posix/tests/posix_mknod.phpt
+++ php-src/ext/posix/tests/posix_mknod.phpt
--TEST--
posix_mknod(): Basic tests
--SKIP--
<?php if (!posix_mknod('posix_mknod')) die('skip posix_mknod() not found'); ?>
--FILE--
<?php
var_dump(posix_mknod(NULL, NULL, NULL, NULL));
?>
--EXPECT--
bool(false)
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php