joomla/joomla-platform — pull request #1719 by dongilbert (2012-11-26 19:32:23+00:00)
Title: Fixing namespace unit test failure

I found a problem in the JLoader Namespacing feature - if a class is already loaded, the autoloader includes the file again anyways.

I download the latest zip of the platform to make sure I didn't break it locally, and got the same errors. This PR fixes the issue by adding a `class_exists($class)` check to the `loadByNamespace*` methods.