You are here

public function ClassLoaderTest::testLoadNonexistentClass in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/class-loader/Tests/ClassLoaderTest.php \Symfony\Component\ClassLoader\Tests\ClassLoaderTest::testLoadNonexistentClass()

@dataProvider getLoadNonexistentClassTests

File

vendor/symfony/class-loader/Tests/ClassLoaderTest.php, line 63

Class

ClassLoaderTest

Namespace

Symfony\Component\ClassLoader\Tests

Code

public function testLoadNonexistentClass($className, $testClassName, $message) {
  $loader = new ClassLoader();
  $loader
    ->addPrefix('Namespaced2\\', __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures');
  $loader
    ->addPrefix('Pearlike2_', __DIR__ . DIRECTORY_SEPARATOR . 'Fixtures');
  $loader
    ->loadClass($testClassName);
  $this
    ->assertFalse(class_exists($className), $message);
}