protected static function RealIteratorTestCase::toAbsolute in Database Sanitize 7
12 calls to RealIteratorTestCase::toAbsolute()
- DateRangeFilterIteratorTest::getAcceptData in vendor/
symfony/ finder/ Tests/ Iterator/ DateRangeFilterIteratorTest.php - DateRangeFilterIteratorTest::testAccept in vendor/
symfony/ finder/ Tests/ Iterator/ DateRangeFilterIteratorTest.php - @dataProvider getAcceptData
- DepthRangeFilterIteratorTest::getAcceptData in vendor/
symfony/ finder/ Tests/ Iterator/ DepthRangeFilterIteratorTest.php - DepthRangeFilterIteratorTest::testAccept in vendor/
symfony/ finder/ Tests/ Iterator/ DepthRangeFilterIteratorTest.php - @dataProvider getAcceptData
- ExcludeDirectoryFilterIteratorTest::getAcceptData in vendor/
symfony/ finder/ Tests/ Iterator/ ExcludeDirectoryFilterIteratorTest.php
File
- vendor/
symfony/ finder/ Tests/ Iterator/ RealIteratorTestCase.php, line 81
Class
Namespace
Symfony\Component\Finder\Tests\IteratorCode
protected static function toAbsolute($files = null) {
/*
* Without the call to setUpBeforeClass() property can be null.
*/
if (!self::$tmpDir) {
self::$tmpDir = realpath(sys_get_temp_dir()) . \DIRECTORY_SEPARATOR . 'symfony_finder';
}
if (\is_array($files)) {
$f = array();
foreach ($files as $file) {
if (\is_array($file)) {
$f[] = self::toAbsolute($file);
}
else {
$f[] = self::$tmpDir . \DIRECTORY_SEPARATOR . str_replace('/', \DIRECTORY_SEPARATOR, $file);
}
}
return $f;
}
if (\is_string($files)) {
return self::$tmpDir . \DIRECTORY_SEPARATOR . str_replace('/', \DIRECTORY_SEPARATOR, $files);
}
return self::$tmpDir;
}