Example #1
0
 public function testLength()
 {
     $this->assertEquals(strlen(file_get_contents($this->file->getAbsolutePath())), $this->file->length());
 }
Example #2
0
 /**
  * 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());
 }