function CDNUnitTestCase::touchFile in CDN 7.2
Given a file URI, get its path, create the file and ensure it exists.
Parameters
$uri: @see getExpandedFilePath()
2 calls to CDNUnitTestCase::touchFile()
File
- tests/
cdn.test, line 145 - Test CDN.
Class
- CDNUnitTestCase
- @file Test CDN.
Code
function touchFile($uri) {
$path = $this
->getExpandedFilePath($uri);
$this
->assertTrue(touch(rawurldecode($path)), 'Test file created.');
return $path;
}