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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user