예제 #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');
 }
예제 #2
0
파일: Line.php 프로젝트: mattvb91/cphalcon
 public function setFormat($format)
 {
     parent::setFormat($format);
 }