Changeset 1233 for trunk/tests2/logging/LoggerManagerTest.php
- Timestamp:
- 11/04/06 17:04:09 (2 years ago)
- Files:
-
- 1 modified
-
trunk/tests2/logging/LoggerManagerTest.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests2/logging/LoggerManagerTest.php
r908 r1233 22 22 @unlink($this->_logfile); 23 23 @unlink($this->_logfile2); 24 $this->_pl = new AgaviPassthruL ayout;25 $this->_fa = new AgaviFile Appender;24 $this->_pl = new AgaviPassthruLoggerLayout; 25 $this->_fa = new AgaviFileLoggerAppender; 26 26 $this->_fa->initialize($this->_context, array('file' => $this->_logfile)); 27 27 $this->_fa->setLayout($this->_pl); 28 $this->_fa2 = new AgaviFile Appender;28 $this->_fa2 = new AgaviFileLoggerAppender; 29 29 $this->_fa2->initialize($this->_context, array('file' => $this->_logfile2)); 30 30 $this->_fa2->setLayout($this->_pl); … … 72 72 73 73 //this should be logged by both 74 $this->_lm->log(new Agavi Message('simple info message', AgaviLogger::INFO));74 $this->_lm->log(new AgaviLoggerMessage('simple info message', AgaviLogger::INFO)); 75 75 $this->assertRegexp('/simple info message/', file_get_contents($this->_logfile)); 76 76 $this->assertRegexp('/simple info message/', file_get_contents($this->_logfile2)); 77 77 78 78 //this should be logged only by l2 79 $this->_lm->log(new Agavi Message('simple debug message', AgaviLogger::DEBUG));79 $this->_lm->log(new AgaviLoggerMessage('simple debug message', AgaviLogger::DEBUG)); 80 80 $this->assertNotRegexp('/simple debug message/', file_get_contents($this->_logfile)); 81 81 $this->assertRegexp('/simple debug message/', file_get_contents($this->_logfile2));

