示例#1
0
文件: PsImg.php 项目: ilivanoff/www
 /**
  * Все допустимые 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;
 }
示例#2
0
 /**
  * @covers PsImg::MIMES
  */
 public function testMIMES()
 {
     $this->assertTrue(is_array(PsImg::MIMES()));
     $this->assertNotEmpty(PsImg::MIMES());
 }