You are here

public function AutoloaderTest::testRegisterWithInvalidCallback in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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());
}