Example #1
0
 /**
  * Categorize the file
  *
  * @return string
  */
 public function type()
 {
     return f::type($this->root);
 }
Example #2
0
 public function testType()
 {
     $this->assertEquals('image', f::type('jpg'));
     $this->assertEquals('document', f::type('pdf'));
     $this->assertEquals('archive', f::type('zip'));
     $this->assertEquals('code', f::type('css'));
     $this->assertEquals('code', f::type('content.php'));
     $this->assertEquals('code', f::type('py'));
     $this->assertEquals('code', f::type('java'));
 }