diff --git a/tests/framework/base/ModuleTest.php b/tests/framework/base/ModuleTest.php index e620cbb..27405a9 100644 --- a/tests/framework/base/ModuleTest.php +++ b/tests/framework/base/ModuleTest.php @@ -19,7 +19,7 @@ class ModuleTest extends TestCase { $module = new TestModule('test'); $this->assertEquals('yiiunit\framework\base\controllers', $module->controllerNamespace); - $this->assertEquals(__DIR__ . '/controllers', $module->controllerPath); + $this->assertEquals(__DIR__ . DIRECTORY_SEPARATOR . 'controllers', str_replace(['/','\\'], DIRECTORY_SEPARATOR , $module->controllerPath)); } }