Skip to content

Commit

Permalink
Merge pull request #11071 from yankos/fix_tests_init
Browse files Browse the repository at this point in the history
Fix autoloader on Windows
  • Loading branch information
sergeyklay committed Dec 14, 2015
2 parents 6ebef71 + 2e2c9df commit a4e64be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/_bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function phalconTestAutoloader($className)
}

$filename = $className . '.php';
$fullFile = ROOT_PATH . '/' . str_replace('Phalcon/Tests/', '', $filename);
$fullFile = ROOT_PATH . DIRECTORY_SEPARATOR . str_replace('Phalcon' . DIRECTORY_SEPARATOR . 'Tests'. DIRECTORY_SEPARATOR, '', $filename);

if (file_exists($fullFile)) {
require_once $fullFile;
Expand Down

0 comments on commit a4e64be

Please sign in to comment.