/** * Test that maxFilesize() returns true if the files size meets the maximum requirement. */ public function testMaxFilesize() { $this->assertTrue(Validate::maxFilesize($this->image, 13437)); $this->assertTrue(Validate::maxFilesize(array('tmp_name' => $this->image, 'error' => 0, 'size' => 13437), 15000)); $this->assertFalse(Validate::maxFilesize($this->image, 13000)); $this->assertFalse(Validate::maxFilesize(array('tmp_name' => $this->image, 'error' => 0, 'size' => 13437), 12233)); $this->assertFalse(Validate::maxFilesize('fakq.jpg', 13000)); }