You are here

public function AutoloaderTest::testRegisterWithInvalidCallback in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/AutoloaderTest.php \Doctrine\Tests\Common\Proxy\AutoloaderTest::testRegisterWithInvalidCallback()

File

vendor/doctrine/common/tests/Doctrine/Tests/Common/Proxy/AutoloaderTest.php, line 62

Class

AutoloaderTest
@group DDC-1698

Namespace

Doctrine\Tests\Common\Proxy

Code

public function testRegisterWithInvalidCallback() {
  $this
    ->setExpectedException('Doctrine\\Common\\Proxy\\Exception\\InvalidArgumentException', 'Invalid \\$notFoundCallback given: must be a callable, "stdClass" given');
  Autoloader::register('', '', new \stdClass());
}