1
0
Fork 0
mirror of synced 2024-07-05 06:31:08 +12:00
appwrite/tests/unit/Storage/Validators/FileSizeTest.php

30 lines
585 B
PHP
Raw Normal View History

2019-12-27 06:25:59 +13:00
<?php
namespace Appwrite\Tests;
use Appwrite\Storage\Validators\FileSize;
2019-12-27 06:25:59 +13:00
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);
}
}