You are here

public function ClassLoaderTest::testLoadFileNotContainingClassClass in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/common/tests/Doctrine/Tests/Common/ClassLoaderTest.php \Doctrine\Tests\Common\ClassLoaderTest::testLoadFileNotContainingClassClass()

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/ClassLoaderTest.php, line 88

Class

ClassLoaderTest

Namespace

Doctrine\Tests\Common

Code

public function testLoadFileNotContainingClassClass() {
  $classLoader = new ClassLoader('ClassLoaderTest', __DIR__);
  $classLoader
    ->setFileExtension('.class.php');
  $this
    ->assertFalse($classLoader
    ->loadClass('ClassLoaderTest\\EmptyFile'));
}