Permalink
Browse files

Replaced Unix-Style Directory Separators with dynamic ones by doing a…

… str_replace('/', DIRECTORY_SEPARATOR) before PHPUnit Assert
  • Loading branch information...
1 parent f67fc08 commit a24a7a2807c91a9d31bdd6a67f58ed62760f1826 nakymaton committed Dec 27, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 tests/Aura/Autoload/LoaderTest.php
@@ -279,10 +279,12 @@ public function testSetPaths()
$this->assertSame($class1, $actual);
$expect = [
- $class1 => dirname( dirname( __DIR__ ) ) . DIRECTORY_SEPARATOR . 'Aura' . DIRECTORY_SEPARATOR . 'Autoload' . DIRECTORY_SEPARATOR . 'Foo' . DIRECTORY_SEPARATOR . 'MockAutoloadCliClass.php',
- $class2 => dirname( dirname( __DIR__ ) ) . DIRECTORY_SEPARATOR . 'Aura' . DIRECTORY_SEPARATOR . 'Autoload' . DIRECTORY_SEPARATOR . 'Bar' . DIRECTORY_SEPARATOR . 'MockAutoloadRouterClass.php',
+ $class1 => dirname( dirname( __DIR__ ) ) . DIRECTORY_SEPARATOR . 'Aura/Autoload/Foo/MockAutoloadCliClass.php',
+ $class2 => dirname( dirname( __DIR__ ) ) . DIRECTORY_SEPARATOR . 'Aura/Autoload/Bar/MockAutoloadRouterClass.php',
];
-
+
+ $expect = str_replace('/', DIRECTORY_SEPARATOR, $expect);
+
$actual = $autoloader->getLoaded();
$this->assertSame($expect, $actual);
}

0 comments on commit a24a7a2

Please sign in to comment.