Skip to content

Commit 0a72567

Browse files
authored
Merge pull request #35 from helhum/fix-installed-versions
2 parents f80021a + 031e30b commit 0a72567

2 files changed

Lines changed: 1 addition & 10 deletions

File tree

src/ClassAliasLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function getClassNameForAlias($aliasOrClassName)
9898
*/
9999
public function register($prepend = false)
100100
{
101-
$this->composerClassLoader->unregister();
101+
spl_autoload_unregister(array($this->composerClassLoader, 'loadClass'));
102102
spl_autoload_register(array($this, 'loadClassWithAlias'), true, $prepend);
103103
}
104104

tests/Unit/ClassAliasLoaderTest.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,6 @@ public function tearMeDown()
4646
$this->subject->unregister();
4747
}
4848

49-
/**
50-
* @test
51-
*/
52-
public function registeringTheAliasLoaderUnregistersComposerClassLoader()
53-
{
54-
$this->composerClassLoaderMock->expects($this->once())->method('unregister');
55-
$this->subject->register();
56-
}
57-
5849
/**
5950
* @test
6051
*/

0 commit comments

Comments
 (0)