/** * Все допустимые типы картинок * Array (IMAGETYPE_JPEG, IMAGETYPE_GIF, IMAGETYPE_PNG) */ public static function TYPES() { return is_array(self::$TYPES) ? self::$TYPES : (self::$TYPES = array_keys(self::$TYPE2EXT)); }
/** * @covers PsImg::TYPES */ public function testTYPES() { $this->assertTrue(is_array(PsImg::TYPES())); $this->assertNotEmpty(PsImg::TYPES()); }