示例#1
0
 /**
  * @covers PsImg::hasType
  */
 public function testHasType()
 {
     $this->assertTrue(PsImg::hasType(IMAGETYPE_PNG));
     $this->assertTrue(PsImg::hasType(IMAGETYPE_GIF));
     $this->assertTrue(PsImg::hasType(IMAGETYPE_JPEG));
     $this->assertFalse(PsImg::hasType(self::NOT_ALLOWED_INT));
     $this->assertFalse(PsImg::hasType(self::NOT_ALLOWED_STR));
     $this->assertFalse(PsImg::hasType(null));
 }