Fix recursive mkdir

This commit is contained in:
Robin Appelman 2014-08-27 16:03:35 +02:00
commit f3b397f504
2 changed files with 8 additions and 1 deletions

View file

@ -129,4 +129,11 @@ class UrlCallBack extends \PHPUnit_Framework_TestCase {
}
$this->assertTrue($called);
}
public function testMKDirRecursive() {
$dir = $this->getTempDir() . '/test/sad';
$path = \Icewind\Streams\UrlCallBack::wrap($dir);
mkdir($path, 0700, true);
$this->assertTrue(file_exists($dir));
}
}