Permalink
Browse files

ZendTest\Filter: Bugfixes for windows

  • Loading branch information...
1 parent 47f5a6a commit 493f467d80d218134d39e27db09d90c248c1fcf5 @ThaDafinser committed Oct 28, 2013
Showing with 4 additions and 4 deletions.
  1. +1 −1 tests/ZendTest/Filter/Compress/ZipTest.php
  2. +3 −3 tests/ZendTest/Filter/File/RenameUploadTest.php
@@ -22,7 +22,7 @@ public function setUp()
$this->markTestSkipped('This adapter needs the zip extension');
}
- $this->tmp = sys_get_temp_dir() . '/' . str_replace('\\', '_', __CLASS__);
+ $this->tmp = sys_get_temp_dir() . DIRECTORY_SEPARATOR . str_replace('\\', '_', __CLASS__);
$files = array(
$this->tmp . '/compressed.zip',
@@ -66,9 +66,9 @@ public function setUp()
mkdir($this->_filesPath);
mkdir($this->_newDir);
- $this->_oldFile = $this->_filesPath . '/testfile.txt';
- $this->_newFile = $this->_filesPath . '/newfile.xml';
- $this->_newDirFile = $this->_newDir . '/testfile.txt';
+ $this->_oldFile = $this->_filesPath . DIRECTORY_SEPARATOR . 'testfile.txt';
+ $this->_newFile = $this->_filesPath . DIRECTORY_SEPARATOR . 'newfile.xml';
+ $this->_newDirFile = $this->_newDir . DIRECTORY_SEPARATOR . 'testfile.txt';
touch($this->_oldFile);
}

0 comments on commit 493f467

Please sign in to comment.