public function __construct() { $this->fetchFormat = FetchFormat::fromString(Format::FETCH_FORMAT_AUTO); $this->crop = 'pad'; $this->format = Format::fromExtension('jpg'); $this->validFormats = array('gif', 'jpg', 'png', 'svg'); }
function it_builds_with_jpeg_format_when_original_extension_is_not_valid() { $transformationArray = self::builder()->withFormat(Format::fromExtension('xpm'))->build(); $transformationArray->offsetGet('format')->shouldBe('jpg'); }