1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-04 23:57:29 +02:00

fix: php notice in eztvbridge (#2998)

* fix: php notice in eztvbridge

Fixes Undefined property: stdClass::$torrents

* lint
This commit is contained in:
Dag
2022-09-04 04:35:21 +02:00
committed by GitHub
parent b8f73618c1
commit 57d5aa45f7
3 changed files with 59 additions and 52 deletions

View File

@@ -17,6 +17,15 @@ final class UtilsTest extends TestCase
$this->assertSame('fo[...]', truncate('foo', 2, '[...]'));
}
public function testFormatBytes()
{
$this->assertSame('1 B', format_bytes(1));
$this->assertSame('1 KB', format_bytes(1024));
$this->assertSame('1 MB', format_bytes(1024 ** 2));
$this->assertSame('1 GB', format_bytes(1024 ** 3));
$this->assertSame('1 TB', format_bytes(1024 ** 4));
}
public function testFileCache()
{
$sut = new \FileCache();