kalle           Wed Nov  5 09:58:51 2008 UTC

  Added files:                 (Branch: PHP_5_3)
    /php-src/ext/standard/tests/misc    syslog_basic.phpt 
                                        syslog_parameters.phpt 
                                        syslog_vars_variation1.phpt 
                                        syslog_vars_variation2.phpt 
  Log:
  MFH: New tests for syslog
  

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/misc/syslog_basic.phpt?view=markup&rev=1.1
Index: php-src/ext/standard/tests/misc/syslog_basic.phpt
+++ php-src/ext/standard/tests/misc/syslog_basic.phpt
--TEST--
Basic syslog test
--FILE--
<?php
openlog('phpt', LOG_NDELAY | LOG_PID, LOG_USER);

syslog(LOG_WARNING, 'Basic syslog test');

closelog();
?>
===DONE===
--EXPECT--
===DONE===

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/misc/syslog_parameters.phpt?view=markup&rev=1.1
Index: php-src/ext/standard/tests/misc/syslog_parameters.phpt
+++ php-src/ext/standard/tests/misc/syslog_parameters.phpt
--TEST--
Syslog parameter parsing test
--FILE--
<?php
openlog();
openlog(NULL, 'string', 0);

syslog();
syslog('Wrong parameter order', LOG_WARNING);

closelog('Doesnt take any parameters');
?>
--EXPECTF--
Warning: openlog() expects exactly 3 parameters, 0 given in %s on line %d

Warning: openlog() expects parameter 2 to be long, Unicode string given in %s 
on line %d

Warning: syslog() expects exactly 2 parameters, 0 given in %s on line %d

Warning: syslog() expects parameter 1 to be long, Unicode string given in %s on 
line %d

Warning: closelog() expects exactly 0 parameters, 1 given in %s on line %d

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/misc/syslog_vars_variation1.phpt?view=markup&rev=1.1
Index: php-src/ext/standard/tests/misc/syslog_vars_variation1.phpt
+++ php-src/ext/standard/tests/misc/syslog_vars_variation1.phpt

http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/misc/syslog_vars_variation2.phpt?view=markup&rev=1.1
Index: php-src/ext/standard/tests/misc/syslog_vars_variation2.phpt
+++ php-src/ext/standard/tests/misc/syslog_vars_variation2.phpt



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to