示例#1
0
 /**
  * Checks if a file is of a certain type
  *
  * @param string $value An extension or mime type
  * @return boolean
  */
 public function is($value)
 {
     return f::is($this->root, $value);
 }
示例#2
0
 public function testIs()
 {
     $file = TEST_ROOT_ETC . DS . 'content.php';
     $this->assertTrue(f::is($file, 'php'));
     $this->assertTrue(f::is($file, 'text/plain'));
 }