assertGreaterThan(400, $size); $this->assertLessThan(400000, $size); } public function testGetFileSizeShouldReturnNullIfFileDoesNotExists() { $size = Filesystem::getFileSize(PIWIK_INCLUDE_PATH . '/tests/NotExisting.File'); $this->assertNull($size); } public function testRemoveFileShouldRemoveFile() { $tmpFile = StaticContainer::get('path.tmp') . '/filesystem-test-file'; touch($tmpFile); Filesystem::remove($tmpFile); $this->assertFileNotExists($tmpFile); } public function testRemoveNonExistingFileShouldNotThrowException() { self::expectNotToPerformAssertions(); Filesystem::remove('foo'); } }