/**
  * Tests the JLoader::registerNamespace method when reseting the paths.
  *
  * @return  void
  *
  * @since   12.3
  */
 public function testRegisterNamespaceResetPath()
 {
     // Insert a first path.
     $path = JPATH_TEST_STUBS . '/discover1';
     JLoader::registerNamespace('discover', $path);
     // Reset the path with a new path.
     $path = JPATH_TEST_STUBS . '/discover2';
     JLoader::registerNamespace('discover', $path, true);
     $namespaces = JLoader::getNamespaces();
     $this->assertCount(1, $namespaces['discover']);
     $this->assertContains($path, $namespaces['discover']);
 }