public function testLength() { $this->assertEquals(strlen(file_get_contents($this->file->getAbsolutePath())), $this->file->length()); }
/** * Compare two pathnames lexicographically. * @param File $f1 * @param File $f2 * @return int */ public function compare(File $f1, File $f2) { return $f1->getAbsolutePath()->compareTo($f2->getAbsolutePath()); }