1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

[ticket/10013] Fixed cache test to create intermediate directories.

PHPBB3-10013
This commit is contained in:
Oleg Pudeyev
2011-02-02 10:16:28 -05:00
committed by Igor Wiedler
parent 8de411cc25
commit 4e446277a5
2 changed files with 11 additions and 2 deletions

View File

@@ -41,4 +41,13 @@ class phpbb_test_case_helpers
$this->expectedTriggerError = true;
$this->test_case->setExpectedException($exceptionName, (string) $message, $errno);
}
public function makedirs($path)
{
while (!file_exists($path))
{
$this->makedirs(dirname($path));
mkdir($path);
}
}
}