public function UnishTestCase::mkdir

8.0.x UnishTestCase.php public UnishTestCase::mkdir($path)
master UnishTestCase.php public UnishTestCase::mkdir($path)
5 calls to UnishTestCase::mkdir()
annotatedCommandCase::setupModulesForTests in tests/annotatedCommandTest.php
commandUnitCase::testCommandVersionSpecific in tests/commandUnitTest.php
Assure that matching version-specific command files are loaded and others are ignored.
drushScriptCase::create_site_local_drush in tests/drushScriptTest.php
Copy UNISH_DRUSH into the specified site-local location.
QueueCase::setupModulesForTests in tests/queueTest.php
Copies the woot module into Drupal.
UnishTestCase::recursive_copy in tests/Unish/UnishTestCase.php

File

tests/Unish/UnishTestCase.php, line 214

Namespace

Unish

Class

UnishTestCase

Code

public function mkdir($path) {
  if (!is_dir($path)) {
    if ($this->mkdir(dirname($path))) {
      if (@mkdir($path)) {
        return TRUE;
      }
    }
    return FALSE;
  }
  return TRUE;
}