logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From florians...@apache.org
Subject svn commit: r1309657 - /logging/log4php/trunk/src/test/php/appenders/LoggerAppenderFirephpTest.php
Date Thu, 05 Apr 2012 05:58:06 GMT
Author: floriansemm
Date: Thu Apr  5 05:58:05 2012
New Revision: 1309657

URL: http://svn.apache.org/viewvc?rev=1309657&view=rev
Log:
Fix test after refactoring

Modified:
    logging/log4php/trunk/src/test/php/appenders/LoggerAppenderFirephpTest.php

Modified: logging/log4php/trunk/src/test/php/appenders/LoggerAppenderFirephpTest.php
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/test/php/appenders/LoggerAppenderFirephpTest.php?rev=1309657&r1=1309656&r2=1309657&view=diff
==============================================================================
--- logging/log4php/trunk/src/test/php/appenders/LoggerAppenderFirephpTest.php (original)
+++ logging/log4php/trunk/src/test/php/appenders/LoggerAppenderFirephpTest.php Thu Apr  5
05:58:05 2012
@@ -54,8 +54,8 @@ class LoggerAppenderFirephpTest extends 
 	
 	public function testSetMedium() {
 		$appender = new LoggerAppenderFirephp();
-		$appender->setMedium('page');
-		self::assertSame('page', $appender->getMedium());
+		$appender->setTarget('page');
+		self::assertSame('page', $appender->getTarget());
 	}
 
 	public function testAppend_HandleDebug() {
@@ -69,7 +69,7 @@ class LoggerAppenderFirephpTest extends 
 		
 		$appender->append($this->createEvent($expectedMessage, $expectedLevel));
 		
-		$this->assertLog($console, $expectedMessage, $expectedLevel, 'trace');
+		$this->assertLog($console, $expectedMessage, $expectedLevel, 'log');
 	}
 	
 	public function testAppend_HandleWarn() {
@@ -83,7 +83,7 @@ class LoggerAppenderFirephpTest extends 
 	
 		$appender->append($this->createEvent($expectedMessage, $expectedLevel));
 		
-		$this->assertLog($console, $expectedMessage, $expectedLevel, 'debug');
+		$this->assertLog($console, $expectedMessage, $expectedLevel, 'warn');
 	}
 	
 	public function testAppend_HandleError() {
@@ -97,7 +97,7 @@ class LoggerAppenderFirephpTest extends 
 	
 		$appender->append($this->createEvent($expectedMessage, $expectedLevel));
 		
-		$this->assertLog($console, $expectedMessage, $expectedLevel, 'warn');
+		$this->assertLog($console, $expectedMessage, $expectedLevel, 'error');
 	}	
 	
 	public function testAppend_HandleFatal() {
@@ -159,9 +159,9 @@ class FirePHPSpy {
 		return $this->message;
 	}
 	
-	public function trace($message) {
+	public function log($message) {
 		$this->calls++;
-		$this->calledMethod = 'trace';
+		$this->calledMethod = 'log';
 		$this->message = $message;
 	}
 	



Mime
View raw message