Exemple #1
0
 /**
  * Tests set/getFormat
  *
  * @author Nikos Dimopoulos <*****@*****.**>
  * @since  2012-09-17
  */
 public function testLoggerAdapterFileSetGetFormat()
 {
     $formatter = new Line();
     $format = '%type%|%date%|%message%';
     $formatter->setFormat($format);
     $actual = $formatter->getFormat();
     $expected = $format;
     $this->assertEquals($expected, $actual, 'set/getFormat does not correctly set/get the format');
 }
Exemple #2
0
 public function getFormat()
 {
     return parent::getFormat();
 }