1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-16 02:54:33 +02:00

test_Minify.php : realpath applied to DOC_ROOT

This commit is contained in:
Steve Clay
2008-11-03 19:50:52 +00:00
parent c0a3b93bed
commit 3d2076148c

View File

@@ -102,7 +102,7 @@ function test_Minify()
$pathToWebTest = str_replace( $pathToWebTest = str_replace(
DIRECTORY_SEPARATOR DIRECTORY_SEPARATOR
,'/' ,'/'
,substr(dirname(__FILE__), strlen($_SERVER['DOCUMENT_ROOT'])) ,substr(dirname(__FILE__), strlen(realpath($_SERVER['DOCUMENT_ROOT'])))
); );
$expectedContent = str_replace( $expectedContent = str_replace(
'%PATH_TO_WEB_TEST%' '%PATH_TO_WEB_TEST%'