PhpSpec\CodeAnalysis\AccessInspector::isMethodCallable PHP Метод

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

public isMethodCallable ( object $object, string $method ) : boolean
$object object
$method string
Результат boolean
    public function isMethodCallable($object, $method);

Usage Example

Пример #1
0
 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');
 }
All Usage Examples Of PhpSpec\CodeAnalysis\AccessInspector::isMethodCallable