/** * Все допустимые расширения картинок * Array (jpg, jpeg, gif, png) */ public static function EXTS() { return is_array(self::$EXTS) ? self::$EXTS : (self::$EXTS = to_array_expand(self::$TYPE2EXT)); }
/** * @covers PsImg::EXTS */ public function testEXTS() { $this->assertTrue(is_array(PsImg::EXTS())); $this->assertNotEmpty(PsImg::EXTS()); }