function FakeAutoloader::unregister

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php \Drupal\Tests\Core\DrupalKernel\FakeAutoloader::unregister()
  2. 10 core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php \Drupal\Tests\Core\DrupalKernel\FakeAutoloader::unregister()
  3. 11.x core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php \Drupal\Tests\Core\DrupalKernel\FakeAutoloader::unregister()

Unregisters this instance as an autoloader.

File

core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php, line 174

Class

FakeAutoloader
A fake autoloader for testing.

Namespace

Drupal\Tests\Core\DrupalKernel

Code

public function unregister() {
    spl_autoload_unregister([
        $this,
        'loadClass',
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.