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;
         }
     }
 }
예제 #3
0
 public function setUp()
 {
     $this->distill = new Distill();
     parent::setUp();
 }
 public function setUp()
 {
     $this->strategy = new UncompressionSpeed();
     parent::setUp();
 }
예제 #5
0
 public function setUp()
 {
     $this->strategy = new Random();
     parent::setUp();
 }
예제 #6
0
 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();
 }