<?php

namespace Appwrite\Tests;

use Appwrite\Storage\Validators\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);
    }
}