Skip to content

Commit

Permalink
Use longer class name.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jul 6, 2010
1 parent eaf658d commit 7dce80d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions PHPUnit/Autoload.php
Expand Up @@ -164,10 +164,10 @@ function phpunit_autoload($class)
'phpunit_extensions_ticketlistener' => '/Extensions/TicketListener.php'
);

$cn = strtolower($class);
$class = strtolower($class);

if (isset($classes[$cn])) {
require __DIR__ . $classes[$cn];
if (isset($classes[$class])) {
require __DIR__ . $classes[$class];
}
}

Expand Down
6 changes: 3 additions & 3 deletions PHPUnit/Autoload.php.in
Expand Up @@ -52,10 +52,10 @@ if (!function_exists('phpunit_autoload')) {
___CLASSLIST___
);

$cn = strtolower($class);
$class = strtolower($class);

if (isset($classes[$cn])) {
require ___BASEDIR___$classes[$cn];
if (isset($classes[$class])) {
require ___BASEDIR___$classes[$class];
}
}

Expand Down

0 comments on commit 7dce80d

Please sign in to comment.