|
|
@ -271,13 +271,13 @@ class FileHelperTest extends TestCase |
|
|
|
$this->assertEquals(array($dirName . DIRECTORY_SEPARATOR . $fileName), $foundFiles); |
|
|
|
$this->assertEquals(array($dirName . DIRECTORY_SEPARATOR . $fileName), $foundFiles); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function testMkdir() |
|
|
|
public function testCreateDirectory() |
|
|
|
{ |
|
|
|
{ |
|
|
|
$basePath = $this->testFilePath; |
|
|
|
$basePath = $this->testFilePath; |
|
|
|
$dirName = $basePath . DIRECTORY_SEPARATOR . 'test_dir_level_1' . DIRECTORY_SEPARATOR . 'test_dir_level_2'; |
|
|
|
$dirName = $basePath . DIRECTORY_SEPARATOR . 'test_dir_level_1' . DIRECTORY_SEPARATOR . 'test_dir_level_2'; |
|
|
|
$this->assertTrue(FileHelper::createDirectory($dirName), 'FileHelper::mkdir should return true if directory was created!'); |
|
|
|
$this->assertTrue(FileHelper::createDirectory($dirName), 'FileHelper::createDirectory should return true if directory was created!'); |
|
|
|
$this->assertTrue(file_exists($dirName), 'Unable to create directory recursively!'); |
|
|
|
$this->assertTrue(file_exists($dirName), 'Unable to create directory recursively!'); |
|
|
|
$this->assertTrue(FileHelper::createDirectory($dirName), 'FileHelper::mkdir should return true for already existing directories!'); |
|
|
|
$this->assertTrue(FileHelper::createDirectory($dirName), 'FileHelper::createDirectory should return true for already existing directories!'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function testGetMimeTypeByExtension() |
|
|
|
public function testGetMimeTypeByExtension() |
|
|
|