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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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();