1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00
appwrite/tests/unit/Storage/Validator/FileSizeTest.php
2020-09-30 17:55:19 -04:00

31 lines
597 B
PHP

<?php
namespace Appwrite\Tests;
use Appwrite\Storage\Validator\FileSize;
use PHPUnit\Framework\TestCase;
class FileSizeTest extends TestCase
{
/**
* @var FileSize
*/
protected $object = null;
public function setUp(): void
{
$this->object = new FileSize(1000);
}
public function tearDown(): void
{
}
public function testValues()
{
$this->assertEquals($this->object->isValid(1001), false);
$this->assertEquals($this->object->isValid(1000), true);
$this->assertEquals($this->object->isValid(999), true);
}
}