1
0
Fork 0
mirror of synced 2024-07-03 05:31:38 +12:00
appwrite/tests/unit/Storage/Validator/FileSizeTest.php
2020-06-11 22:36:10 +03:00

30 lines
584 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()
{
$this->object = new FileSize(1000);
}
public function tearDown()
{
}
public function testValues()
{
$this->assertEquals($this->object->isValid(1001), false);
$this->assertEquals($this->object->isValid(1000), true);
$this->assertEquals($this->object->isValid(999), true);
}
}