Private method 'CFileHelper::mkdir()' has been converted into public 'CFileHelper::createDirectory()'.

This commit is contained in:
Paul Klimov
2013-08-29 13:13:57 +03:00
parent d4a01ab1f3
commit 4e398ece03
2 changed files with 15 additions and 8 deletions

View File

@@ -145,6 +145,13 @@ class CFileHelperTest extends CTestCase
$this->assertEquals($bd.'sub'.DIRECTORY_SEPARATOR.'testfile',$files[2]);
}
public function testCreateDirectory()
{
$path = $this->testDir . DIRECTORY_SEPARATOR . 'test' . DIRECTORY_SEPARATOR . 'path';
$this->assertTrue(CFileHelper::createDirectory($path,null,true));
$this->assertTrue(is_dir($path));
}
private function createTestStruct($testDir)
{
$rootDir=$testDir.DIRECTORY_SEPARATOR.$this->rootDir1;