/** * 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); }
public function testIs() { $file = TEST_ROOT_ETC . DS . 'content.php'; $this->assertTrue(f::is($file, 'php')); $this->assertTrue(f::is($file, 'text/plain')); }