コード例 #1
0
 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();
 }
コード例 #2
0
 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
ファイル: DistillTest.php プロジェクト: hkulyk/distill
 public function setUp()
 {
     $this->distill = new Distill();
     parent::setUp();
 }
コード例 #4
0
 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();
 }
コード例 #7
0
 public function setUp()
 {
     $this->strategy = new MinimumSize();
     parent::setUp();
 }