You are here

public function ClassCollectionLoaderTest::testUnableToLoadClassException in Zircon Profile 8.0

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

@expectedException \InvalidArgumentException

File

vendor/symfony/class-loader/Tests/ClassCollectionLoaderTest.php, line 226

Class

ClassCollectionLoaderTest

Namespace

Symfony\Component\ClassLoader\Tests

Code

public function testUnableToLoadClassException() {
  if (is_file($file = sys_get_temp_dir() . '/foo.php')) {
    unlink($file);
  }
  ClassCollectionLoader::load(array(
    'SomeNotExistingClass',
  ), sys_get_temp_dir(), 'foo', false);
}