Skip to content

Commit

Permalink
[SecurityBundle] Fix autoloading in tests (autoload.php overrides aut…
Browse files Browse the repository at this point in the history
…oload.php.dist when it exists)
  • Loading branch information
vicb committed Aug 18, 2011
1 parent d1ad47c commit 1515912
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -17,6 +17,11 @@
while ($dir !== $lastDir) {
$lastDir = $dir;

if (file_exists($dir.'/autoload.php')) {
require_once $dir.'/autoload.php';
break;
}

if (file_exists($dir.'/autoload.php.dist')) {
require_once $dir.'/autoload.php.dist';
break;
Expand Down

0 comments on commit 1515912

Please sign in to comment.