Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PHPUnit/Integration/ServeStaticFileTest.php')
-rw-r--r--tests/PHPUnit/Integration/ServeStaticFileTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/PHPUnit/Integration/ServeStaticFileTest.php b/tests/PHPUnit/Integration/ServeStaticFileTest.php
index bdf288efd4..236bc748c3 100644
--- a/tests/PHPUnit/Integration/ServeStaticFileTest.php
+++ b/tests/PHPUnit/Integration/ServeStaticFileTest.php
@@ -51,7 +51,9 @@ class Test_Piwik_ServeStaticFile extends PHPUnit_Framework_TestCase
public function tearDown()
{
parent::tearDown();
- chmod(TEST_FILE_LOCATION, 0644);
+ if(!chmod(TEST_FILE_LOCATION, 0644)) {
+ throw new Exception("Could not chmod 0644 " . TEST_FILE_LOCATION);
+ }
}
/**