Esempio n. 1
0
 public function setUp()
 {
     $this->formats = $this->quickMock('\\PHPixie\\Config\\Formats');
     $this->file = sys_get_temp_dir() . '/phpixie_config_file.php';
     $this->removeFile();
     $this->parameters = $this->quickMock('\\PHPixie\\Slice\\Data');
     $this->arrayData = $this->quickMock('\\PHPixie\\Slice\\Type\\ArrayData\\Editable');
     $this->format = $this->quickMock('\\PHPixie\\Config\\Formats\\Format');
     parent::setUp();
 }
Esempio n. 2
0
 public function setUp()
 {
     $this->parameters = $this->quickMock('\\PHPixie\\Slice\\Data');
     $this->method($this->parameters, 'getRequired', 'Tinkerbell', array('pixie'));
     $this->dir = sys_get_temp_dir() . '/phpixie_config_test/';
     $this->removeDirs();
     foreach ($this->files as $file) {
         mkdir($this->dir . $file[0], 0777, true);
         file_put_contents($this->dir . $file[0] . $file[1], "<?php\r\nreturn " . var_export($file[2], true) . ";");
     }
     parent::setUp();
 }
Esempio n. 3
0
 public function setUp()
 {
     $this->base = new \PHPixie\Slice\Type\ArrayData($this->sliceBuilder, $this->baseData);
     $this->override = new \PHPixie\Slice\Type\ArrayData($this->sliceBuilder, $this->overrideData);
     parent::setUp();
 }
 public function setUp()
 {
     $this->data = $this->getData();
     parent::setUp();
 }