cvs: pear /Log/tests null.phpt
| From: | Jon Parise | Date: | Fri, 02 Jan 2004 01:42:36 +0000 |
| Subject: | cvs: pear /Log/tests null.phpt | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-15265@lists.php.net to get a copy of this message | ||
jon Thu Jan 1 20:42:36 2004 EDT
Added files:
/pear/Log/tests null.phpt
Log:
Adding a unit test for the 'null' handler.
Index: pear/Log/tests/null.phpt
+++ pear/Log/tests/null.phpt
--TEST--
Log: Null Handler
--FILE--
<?php
require_once 'Log.php';
$logger = &Log::singleton('null');
for ($i = 0; $i < 3; $i++) {
$logger->log("Log entry $i");
}
--EXPECT--