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

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

public it_proxies_method_calls_to_wrapped_object ( ArrayObject $obj, WrappedObject $wrappedObject, Phpspec\CodeAnalysis\AccessInspector $accessInspector )
$obj ArrayObject
$wrappedObject PhpSpec\Wrapper\Subject\WrappedObject
$accessInspector Phpspec\CodeAnalysis\AccessInspector
    function it_proxies_method_calls_to_wrapped_object(\ArrayObject $obj, WrappedObject $wrappedObject, AccessInspector $accessInspector)
    {
        $obj->asort()->shouldBeCalled();
        $wrappedObject->isInstantiated()->willReturn(true);
        $wrappedObject->getInstance()->willReturn($obj);
        $accessInspector->isMethodCallable(Argument::type('ArrayObject'), 'asort')->willReturn(true);
        $this->call('asort');
    }