/** * Все допустимые mime-типы картинок * Array (image/jpeg, image/gif, image/png) */ public static function MIMES() { if (!is_array(self::$MIMES)) { self::$MIMES = array(); foreach (self::TYPES() as $type) { self::$MIMES[] = strtolower(image_type_to_mime_type($type)); } } return self::$MIMES; }
/** * @covers PsImg::MIMES */ public function testMIMES() { $this->assertTrue(is_array(PsImg::MIMES())); $this->assertNotEmpty(PsImg::MIMES()); }