protected function setUp() { if (!interface_exists('Symfony\\Component\\HttpKernel\\CacheClearer\\CacheClearerInterface')) { $this->markTestSkipped('The CacheClearerInterface does not exist.'); } parent::setUp(); }
public function setUp() { if (!class_exists('Imagick')) { $this->markTestSkipped('Imagick is not available.'); } parent::setUp(); }
public function setUp() { parent::setUp(); if (!class_exists('\\League\\Flysystem\\Filesystem')) { $this->markTestSkipped('The league/flysystem PHP library is not available.'); } }
protected function setUp() { parent::setUp(); if (!class_exists('AmazonS3')) { require_once $this->fixturesDir . '/AmazonS3.php'; } }
public function setUp() { parent::setUp(); if (!class_exists('\\League\\Flysystem\\Filesystem')) { $this->markTestSkipped('The league/flysystem PHP library is not available.'); } $adapter = new \League\Flysystem\Adapter\Local($this->fixturesDir); $this->flyFilesystem = new \League\Flysystem\Filesystem($adapter); }
protected function setUp() { parent::setUp(); if (!class_exists('Aws\\S3\\S3Client')) { require_once $this->fixturesDir . '/S3Client.php'; } if (!class_exists('Aws\\S3\\Enum\\CannedAcl')) { require_once $this->fixturesDir . '/CannedAcl.php'; } if (!class_exists('Guzzle\\Service\\Resource\\Model')) { require_once $this->fixturesDir . '/Model.php'; } }
protected function setUp() { parent::setUp(); $this->config = $this->getMockFilterConfiguration(); $this->config->expects($this->any())->method('get')->with('thumbnail')->will($this->returnValue(array('size' => array(180, 180), 'mode' => 'outbound', 'cache' => null))); $this->webRoot = $this->tempDir . '/root/web'; $this->dataRoot = $this->fixturesDir . '/assets'; $this->cacheDir = $this->webRoot . '/media/cache'; $this->filesystem->mkdir($this->cacheDir); $this->cacheManager = $this->getMock('Liip\\ImagineBundle\\Imagine\\Cache\\CacheManager', array('generateUrl'), array($this->config, $this->getMockRouter(), $this->webRoot, 'web_path')); $this->resolver = new WebPathResolver($this->filesystem); $this->cacheManager->addResolver('web_path', $this->resolver); }
protected function setUp() { parent::setUp(); foreach (array('Imagine\\Gd\\Imagine', 'Imagine\\Imagick\\Imagine', 'Imagine\\Gmagick\\Imagine') as $eachClass) { try { $this->imagine = new $eachClass(); break; } catch (\Exception $e) { } } if (!$this->imagine) { $this->markTestSkipped('No Imagine could be instantiated.'); } $this->webRoot = $this->tempDir . '/web'; $this->filesystem->mkdir($this->webRoot); $this->cacheDir = $this->webRoot . '/media/cache'; $this->dataDir = $this->fixturesDir . '/assets'; $this->configuration = new FilterConfiguration(array('thumbnail' => array('filters' => array('thumbnail' => array('size' => array(300, 150), 'mode' => 'outbound'))))); }
protected function setUp() { parent::setUp(); $this->imagine = $this->getMockImagine(); }