Normalize dir path in AutoLoaderStructureTest
authorLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Mon, 20 May 2019 15:09:37 +0000 (17:09 +0200)
committerLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Fri, 7 Jun 2019 10:53:31 +0000 (12:53 +0200)
commit2744dbd9b7bc186639e3be2b0a32399adbd30fb9
treea155ce8eb7df780824b96db2ddd19d709c7e9523
parent44b524827e3004d4f2fbcb19c194c702c651d1f2
Normalize dir path in AutoLoaderStructureTest

The file paths we inspect are always normalized (File_Iterator_Facade
applies realpath()), but the directory we compare against may not be,
depending on how wfLoadExtension() was called. Normalize the directory
before we remove the directory prefix from each file, so that we don’t
end up stripping away the wrong parts of the path.

Change-Id: Ib272fb892c18d989f8d439ed50c6a5a8fd542cc9
tests/phpunit/structure/AutoLoaderStructureTest.php