* @license PHP License * @package WB * @subpackage unittest */ /** * Unit Test * * Parameter observer mock up * * @version 0.1.0 * @package WB * @subpackage unittest */ class TestCaseLogFile extends UnitTestCase { protected $_log; public function __construct() { WBClass::load( 'WBLog' ); $this->_log = WBLog::start( __CLASS__ ); } /** * simply set parameter * */ public function testInit() { // WBClass::load( 'WBLog' ); $this->assertTrue( class_exists( 'WBLog', false ) ); $this->assertTrue( is_object( $this->_log ) ); $this->assertIsA( $this->_log, 'WBLog_File' ); } /** * log something * */ public function testLog() { $this->assertTrue( $this->_log->debug( 'debug' ) ); $this->assertTrue( $this->_log->notice( 'notice' ) ); $this->assertTrue( $this->_log->info( 'info' ) ); $this->assertTrue( $this->_log->warn( 'warn' ) ); $this->assertTrue( $this->_log->err( 'err' ) ); } } ?>