fix failing test in Windows env

This commit is contained in:
Boudewijn Vahrmeijer
2016-09-26 22:24:11 +02:00
parent fb210b8839
commit 41e2e244fc

View File

@@ -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));
}
}