Browse Source

fix failing test in Windows env

tags/2.0.10
Boudewijn Vahrmeijer 8 years ago
parent
commit
41e2e244fc
  1. 2
      tests/framework/base/ModuleTest.php

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

Loading…
Cancel
Save