/** * @covers PsImg::hasExt */ public function testHasExt() { $this->assertTrue(PsImg::hasExt('png')); $this->assertTrue(PsImg::hasExt('PNG')); $this->assertTrue(PsImg::hasExt('gif')); $this->assertTrue(PsImg::hasExt('jpg')); $this->assertTrue(PsImg::hasExt('jpeg')); $this->assertFalse(PsImg::hasExt(IMAGETYPE_PNG)); $this->assertFalse(PsImg::hasExt(self::NOT_ALLOWED_STR)); $this->assertFalse(PsImg::hasExt(self::NOT_ALLOWED_INT)); $this->assertFalse(PsImg::hasExt(null)); }