Пример #1
0
 public function tearDown()
 {
     if (!$this->_testsEnabled) {
         return;
     }
     parent::tearDown();
     if (file_exists(GARP_APPLICATION_PATH . '/../tests/tmp/' . self::TEST_EMAIL . '.tmp')) {
         unlink(GARP_APPLICATION_PATH . '/../tests/tmp/' . self::TEST_EMAIL . '.tmp');
     }
 }
Пример #2
0
 public function setUp()
 {
     parent::setUp();
     $this->_helper->injectConfigValues(array('cdn' => array('baseUrl' => 'https://s3-eu-west-1.amazonaws.com/static.melkweg.nl', 's3' => array('apikey' => '12345', 'secret' => '67890'), 'type' => 's3', 'ssl' => true, 'path' => array('upload' => array('image' => '/images', 'document' => '/documents'), 'static' => array('image' => '/static-images', 'document' => '/static-documents')), 'extensions' => 'jpg,gif,png')));
 }
Пример #3
0
 public function setUp()
 {
     parent::setUp();
     $this->_helper->injectConfigValues(array('cdn' => array('type' => 'local', 'extensions' => 'jpg,jpeg,gif,png,zip,pdf,xls,xlsx,csv,json', 'path' => array('upload' => array('image' => GARP_APPLICATION_PATH . '/../tests/tmp', 'document' => GARP_APPLICATION_PATH . '/../tests/tmp'), 'static' => array('image' => GARP_APPLICATION_PATH . '/../tests/tmp', 'document' => GARP_APPLICATION_PATH . '/../tests/tmp')))));
 }
Пример #4
0
 public function setUp()
 {
     parent::setUp();
     file_put_contents($this->_getSemverLocation(), "---\n            :major: 2\n            :minor: 4\n            :patch: 29\n            :special: ''");
     file_put_contents($this->_getSpecialSemverLocation(), "---\n            :major: 0\n            :minor: 7\n            :patch: 7\n            :special: 'alpha'");
 }
Пример #5
0
 public function tearDown()
 {
     parent::tearDown();
     $this->_getView()->clearVars();
 }