mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
FIXED: Unnecessarily strict comparison of path separators in windows filenames
This commit is contained in:
parent
61148834f2
commit
5ea2c3dc5a
@ -37,13 +37,12 @@ class ClassLoaderTest extends SapphireTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function testGetItemPath() {
|
public function testGetItemPath() {
|
||||||
$ds = DIRECTORY_SEPARATOR;
|
|
||||||
$loader = new SS_ClassLoader();
|
$loader = new SS_ClassLoader();
|
||||||
|
|
||||||
$loader->pushManifest($this->testManifest1);
|
$loader->pushManifest($this->testManifest1);
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
$this->baseManifest1 . $ds . 'module' . $ds . 'classes' . $ds . 'ClassA.php',
|
realpath($this->baseManifest1 . '/module/classes/ClassA.php'),
|
||||||
$loader->getItemPath('ClassA')
|
realpath($loader->getItemPath('ClassA'))
|
||||||
);
|
);
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
false,
|
false,
|
||||||
@ -64,8 +63,8 @@ class ClassLoaderTest extends SapphireTest {
|
|||||||
$loader->getItemPath('UnknownClass')
|
$loader->getItemPath('UnknownClass')
|
||||||
);
|
);
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
$this->baseManifest2 . $ds . 'module' . $ds . 'classes' . $ds . 'OtherClassA.php',
|
realpath($this->baseManifest2 . '/module/classes/OtherClassA.php'),
|
||||||
$loader->getItemPath('OtherClassA')
|
realpath($loader->getItemPath('OtherClassA'))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user