Пример #1
0
 /**
  * @depends testConstruct
  */
 public function testToString()
 {
     $time = time();
     $entry = new rex_log_entry($time, ['test1', ' ', " test2\nt "]);
     $this->assertSame(date('Y-m-d H:i:s', $time) . ' | test1 |  | test2t', $entry->__toString());
 }
Пример #2
0
 /**
  * @return rex_log_entry
  */
 public function current()
 {
     return rex_log_entry::createFromString($this->currentLine);
 }