/** * @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()); }
/** * @return rex_log_entry */ public function current() { return rex_log_entry::createFromString($this->currentLine); }