function SassyBaseUnitTest::libraryExtractLocation in Sassy 7.2
Generate a temporary location to extract the PHPSass library to.
1 call to SassyBaseUnitTest::libraryExtractLocation()
- SassyBaseUnitTest::requirePHPSassLibrary in ./
sassy.test - Require the PHPSass Library.
File
- ./
sassy.test, line 102
Class
- SassyBaseUnitTest
- Base class for Sassy tests.
Code
function libraryExtractLocation($create = TRUE) {
$directory =& drupal_static(__FUNCTION__, '');
if (empty($directory)) {
$directory = 'temporary://phpsass-library-' . substr($this->databasePrefix, 10);
if ($create && !file_exists($directory)) {
mkdir($directory);
}
}
return $directory;
}