Browse files

Test CS

  • Loading branch information...
1 parent ae3c072 commit 4a5af100e6d6ae35b6ba992b32253664994c2e63 @stefankleff committed Oct 10, 2012
Showing with 14 additions and 11 deletions.
  1. +14 −11 tests/ZendTest/Log/LoggerTest.php
View
25 tests/ZendTest/Log/LoggerTest.php
@@ -261,33 +261,36 @@ public function testRegisterErrorHandler()
Logger::unregisterErrorHandler();
$this->assertEquals($writer->events[0]['message'], 'Undefined variable: test');
}
-
-
- public function testAddProcessor() {
+
+
+ public function testAddProcessor()
+ {
$processor = new Backtrace();
$this->logger->addProcessor($processor);
-
+
$processors = $this->logger->getProcessors()->toArray();
$this->assertEquals($processor, $processors[0]);
}
-
- public function testAddProcessorByName() {
+
+ public function testAddProcessorByName()
+ {
$this->logger->addProcessor('backtrace');
-
+
$processors = $this->logger->getProcessors()->toArray();
$this->assertInstanceOf('Zend\Log\Processor\Backtrace', $processors[0]);
-
+
$writer = new MockWriter;
$this->logger->addWriter($writer);
$this->logger->log(Logger::ERR, 'foo');
}
-
- public function testProcessorOutputAdded() {
+
+ public function testProcessorOutputAdded()
+ {
$processor = new Backtrace();
$this->logger->addProcessor($processor);
$writer = new MockWriter;
$this->logger->addWriter($writer);
-
+
$this->logger->log(Logger::ERR, 'foo');
$this->assertEquals(__FILE__, $writer->events[0]['extra']['file']);
}

0 comments on commit 4a5af10

Please sign in to comment.