8000 merged branch eventhorizonpl/100_ptc_symfony_component_class_loader_p… · richardudovich/symfony@2cd61ab · GitHub
[go: up one dir, main page]

Skip to content

Commit 2cd61ab

Browse files
committed
merged branch eventhorizonpl/100_ptc_symfony_component_class_loader_p3 (PR symfony#5412)
Commits ------- 8a3c8c9 load test Discussion ---------- load test Hi, This patch add test that covers this situation public static function load($classes, $cacheDir, $name, $autoReload, $adaptive = false, $extension = '.php') { // each $name can only be loaded once per PHP process if (isset(self::$loaded[$name])) { return; } Best regards, Michal
2 parents 5040599 + 8a3c8c9 commit 2cd61ab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Symfony/Component/ClassLoader/Tests/ClassCollectionLoaderTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,10 @@ public function testUnableToLoadClassException()
173173
{
174174
ClassCollectionLoader::load(array('SomeNotExistingClass'), '', 'foo', false);
175175
}
176+
177+
public function testLoadTwiceClass()
178+
{
179+
ClassCollectionLoader::load(array('Foo'), '', 'foo', false);
180+
ClassCollectionLoader::load(array('Foo'), '', 'foo', false);
181+
}
176182
}

0 commit comments

Comments
 (0)
0