eZ\Bundle\EzPublishCoreBundle\Imagine\Filter\UnsupportedFilter::apply PHP Метод

apply() публичный Метод

public apply ( Imagine\Image\ImageInterface $image )
$image Imagine\Image\ImageInterface
    public function apply(ImageInterface $image)
    {
        throw new NotSupportedException('Filter is not supported by your current configuration.');
    }

Usage Example

 /**
  * @expectedException \Imagine\Exception\NotSupportedException
  */
 public function testLoad()
 {
     $filter = new UnsupportedFilter();
     $filter->apply($this->getMock('\\Imagine\\Image\\ImageInterface'));
 }
UnsupportedFilter