You are here

public function ClassMapGeneratorTest::prepare_workspace in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/class-loader/Tests/ClassMapGeneratorTest.php \Symfony\Component\ClassLoader\Tests\ClassMapGeneratorTest::prepare_workspace()
1 call to ClassMapGeneratorTest::prepare_workspace()
ClassMapGeneratorTest::testDump in vendor/symfony/class-loader/Tests/ClassMapGeneratorTest.php
@dataProvider getTestCreateMapTests

File

vendor/symfony/class-loader/Tests/ClassMapGeneratorTest.php, line 23

Class

ClassMapGeneratorTest

Namespace

Symfony\Component\ClassLoader\Tests

Code

public function prepare_workspace() {
  $this->workspace = rtrim(sys_get_temp_dir(), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . time() . mt_rand(0, 1000);
  mkdir($this->workspace, 0777, true);
  $this->workspace = realpath($this->workspace);
}