mirror of
https://github.com/friendica/friendica
synced 2025-05-01 01:04:36 +02:00
parent
79b40ad573
commit
eadcc8dc93
3 changed files with 15 additions and 0 deletions
|
@ -145,4 +145,16 @@ class ParsedLogIteratorTest extends TestCase
|
|||
$pls = iterator_to_array($this->pli, false);
|
||||
self::assertCount(0, $pls);
|
||||
}
|
||||
|
||||
public function testEmptyLogFile()
|
||||
{
|
||||
$logfile = dirname(__DIR__) . '/../../datasets/log/empty.friendica.log.txt';
|
||||
|
||||
$reader = new ReversedFileReader();
|
||||
$pli = new ParsedLogIterator($reader);
|
||||
$pli->open($logfile);
|
||||
|
||||
$pls = iterator_to_array($pli, false);
|
||||
self::assertCount(0, $pls);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue