Skip to content

Commit

Permalink
Merged pull request zetacomponents#8
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Oct 30, 2017
2 parents d816bd6 + 850e828 commit 9458e5b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tests/base_test.php
Expand Up @@ -424,8 +424,8 @@ public function testBaseAddAndGetAutoloadDirs4()
public function testNoPrefixAutoload()
{
ezcBase::addClassRepository( __DIR__ . '/test_repository', __DIR__ . '/test_repository/autoload_files' );
ezc_autoload( 'Object' );
if ( !class_exists( 'Object' ) )
ezc_autoload( 'Objet' );
if ( !class_exists( 'Objet' ) )
{
$this->fail( "Autoload does not handle classes with no prefix" );
}
Expand Down
5 changes: 0 additions & 5 deletions tests/test_repository/autoload_files/object_autoload.php

This file was deleted.

5 changes: 5 additions & 0 deletions tests/test_repository/autoload_files/objet_autoload.php
@@ -0,0 +1,5 @@
<?php
return array(
'Objet' => 'object/object.php',
);
?>
3 changes: 2 additions & 1 deletion tests/test_repository/object/object.php
@@ -1,4 +1,5 @@
<?php
class Object{
class Objet{
// Objet is not a typo, Object is a reserved keywork in 7.2+
}
?>

0 comments on commit 9458e5b

Please sign in to comment.