Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request zendframework/zendframework#1754 from mhujer/zend-…
Browse files Browse the repository at this point in the history
…config-writer-fix-tests

Fix some Zend\Config\Writer tests failures on Windows
  • Loading branch information
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/Writer/AbstractWriterTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ protected function getTestAssetFileName()

public function tearDown()
{
@unlink($this->getTestAssetFileName());
if (file_exists($this->getTestAssetFileName())) {
if (!is_writable($this->getTestAssetFileName())) {
chmod($this->getTestAssetFileName(), 0777);
}
@unlink($this->getTestAssetFileName());
}
}

public function testNoFilenameSet()
Expand Down

0 comments on commit 7b73995

Please sign in to comment.