예제 #1
0
파일: Mime.php 프로젝트: robtuley/knotwerk
 function testCanModifyMimeType()
 {
     $mime = new T_File_Mime('jpg');
     $mime->setType(T_Mime::CSS);
     $this->assertSame($mime->getType(), T_Mime::CSS);
     $this->assertSame($mime->getExt(), 'css');
     $this->assertSame($mime->__toString(), 'text/css');
 }
예제 #2
0
파일: Path.php 프로젝트: robtuley/knotwerk
 /**
  * Clone additions.
  */
 function __clone()
 {
     /* clone MIME object */
     $this->mime = new T_File_Mime($this->mime->getExt());
 }