public function setUp() { $supportChecker = m::mock('Distill\\SupportCheckerInterface'); $supportChecker->shouldReceive('isFormatSupported')->andReturn(true); $supportChecker->shouldReceive('isFormatChainSupported')->andReturn(true, false)->getMock(); $this->chooser = new Chooser($supportChecker); parent::setUp(); }
public function setUp() { parent::setUp(); $this->supportedFormats = []; $this->unsupportedFormats = []; foreach ($this->allFormats as $format) { if ($this->method->isFormatSupported($format)) { $this->supportedFormats[] = $format; } else { $this->unsupportedFormats[] = $format; } } }
public function setUp() { $this->distill = new Distill(); parent::setUp(); }
public function setUp() { $this->strategy = new UncompressionSpeed(); parent::setUp(); }
public function setUp() { $this->strategy = new Random(); parent::setUp(); }
public function setUp() { $formatChain = new Format\FormatChain([new Format\Simple\Zip()]); $this->file = new File('test.zip', $formatChain); parent::setUp(); }
public function setUp() { $this->strategy = new MinimumSize(); parent::setUp(); }