spec\PhpSpec\Wrapper\Subject\CallerSpec::it_delegates_throwing_class_not_found_exception PHP Метод

it_delegates_throwing_class_not_found_exception() публичный Метод

public it_delegates_throwing_class_not_found_exception ( WrappedObject $wrappedObject, ExceptionFactory $exceptions )
$wrappedObject PhpSpec\Wrapper\Subject\WrappedObject
$exceptions PhpSpec\Exception\ExceptionFactory
    function it_delegates_throwing_class_not_found_exception(WrappedObject $wrappedObject, ExceptionFactory $exceptions)
    {
        $wrappedObject->isInstantiated()->willReturn(false);
        $wrappedObject->getClassName()->willReturn('Foo');
        $exceptions->classNotFound('Foo')->willReturn(new \PhpSpec\Exception\Fracture\ClassNotFoundException('Class "Foo" does not exist.', '"Foo"'))->shouldBeCalled();
        $this->shouldThrow('\\PhpSpec\\Exception\\Fracture\\ClassNotFoundException')->duringGetWrappedObject();
    }