mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 01:55:21 +02:00
fix: php notice in eztvbridge (#2998)
* fix: php notice in eztvbridge Fixes Undefined property: stdClass::$torrents * lint
This commit is contained in:
parent
b8f73618c1
commit
57d5aa45f7
3 changed files with 59 additions and 52 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue