PHP Класс spec\Prophecy\Prophecy\ObjectProphecySpec

Наследование: extends PhpSpec\ObjectBehavior
Показать файл Открыть проект

Открытые методы

Метод Описание
it_adds_interface_during_willImplement_call ( $lazyDouble )
it_does_not_have_method_prophecies_by_default ( )
it_implements_ProphecyInterface ( )
it_returns_new_MethodProphecy_for_all_callback_signatures ( Prophecy\Doubler\Doubler $doubler, Prophecy\Prophecy\ProphecySubjectInterface $reflection )
it_returns_new_MethodProphecy_for_different_signatures ( Prophecy\Doubler\Doubler $doubler, Prophecy\Prophecy\ProphecySubjectInterface $reflection )
it_returns_new_MethodProphecy_instance_for_arbitrary_call ( Prophecy\Doubler\Doubler $doubler, Prophecy\Prophecy\ProphecySubjectInterface $reflection )
it_returns_null_after_checkPredictions_call_if_there_is_no_method_prophecies ( )
it_returns_same_MethodProphecy_for_same_registered_signature ( Prophecy\Doubler\Doubler $doubler, Prophecy\Prophecy\ProphecySubjectInterface $reflection )
it_sets_constructor_arguments_during_willBeConstructedWith_call ( $lazyDouble )
it_sets_parentClass_during_willExtend_call ( $lazyDouble )
it_should_get_method_prophecies_by_method_name ( Prophecy\Prophecy\MethodProphecy $method1, Prophecy\Prophecy\MethodProphecy $method2, Prophecy\Argument\ArgumentsWildcard $arguments )
it_should_proxy_getProphecyMethodCalls_to_CallCenter ( $lazyDouble, Prophecy\Call\CallCenter $callCenter, Prophecy\Argument\ArgumentsWildcard $wildcard, Prophecy\Call\Call $call )
it_should_proxy_makeProphecyMethodCall_to_CallCenter ( $lazyDouble, Prophecy\Call\CallCenter $callCenter )
it_should_return_empty_array_if_no_method_prophecies_found ( )
it_should_reveal_arguments_and_return_values_from_callCenter ( $lazyDouble, Prophecy\Call\CallCenter $callCenter, Prophecy\Prophecy\RevealerInterface $revealer )
it_throws_AggregateException_during_checkPredictions_if_predictions_fail ( Prophecy\Prophecy\MethodProphecy $methodProphecy1, Prophecy\Prophecy\MethodProphecy $methodProphecy2, Prophecy\Argument\ArgumentsWildcard $argumentsWildcard1, Prophecy\Argument\ArgumentsWildcard $argumentsWildcard2 )
its_addMethodProphecy_adds_method_prophecy ( Prophecy\Prophecy\MethodProphecy $methodProphecy, Prophecy\Argument\ArgumentsWildcard $argumentsWildcard )
its_addMethodProphecy_handles_prophecies_for_different_methods ( Prophecy\Prophecy\MethodProphecy $methodProphecy1, Prophecy\Prophecy\MethodProphecy $methodProphecy2, Prophecy\Argument\ArgumentsWildcard $argumentsWildcard1, Prophecy\Argument\ArgumentsWildcard $argumentsWildcard2 )
its_addMethodProphecy_handles_prophecies_with_different_arguments ( Prophecy\Prophecy\MethodProphecy $methodProphecy1, Prophecy\Prophecy\MethodProphecy $methodProphecy2, Prophecy\Argument\ArgumentsWildcard $argumentsWildcard1, Prophecy\Argument\ArgumentsWildcard $argumentsWildcard2 )
its_addMethodProphecy_throws_exception_when_method_has_no_ArgumentsWildcard ( Prophecy\Prophecy\MethodProphecy $methodProphecy )
let ( Prophecy\Doubler\LazyDouble $lazyDouble, Prophecy\Prophecy\ProphecySubjectInterface $double )

Описание методов

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

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

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

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

public it_returns_new_MethodProphecy_for_all_callback_signatures ( Prophecy\Doubler\Doubler $doubler, Prophecy\Prophecy\ProphecySubjectInterface $reflection )
$doubler Prophecy\Doubler\Doubler
$reflection Prophecy\Prophecy\ProphecySubjectInterface

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

public it_returns_new_MethodProphecy_for_different_signatures ( Prophecy\Doubler\Doubler $doubler, Prophecy\Prophecy\ProphecySubjectInterface $reflection )
$doubler Prophecy\Doubler\Doubler
$reflection Prophecy\Prophecy\ProphecySubjectInterface

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

public it_returns_new_MethodProphecy_instance_for_arbitrary_call ( Prophecy\Doubler\Doubler $doubler, Prophecy\Prophecy\ProphecySubjectInterface $reflection )
$doubler Prophecy\Doubler\Doubler
$reflection Prophecy\Prophecy\ProphecySubjectInterface

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

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

public it_returns_same_MethodProphecy_for_same_registered_signature ( Prophecy\Doubler\Doubler $doubler, Prophecy\Prophecy\ProphecySubjectInterface $reflection )
$doubler Prophecy\Doubler\Doubler
$reflection Prophecy\Prophecy\ProphecySubjectInterface

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

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

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

public it_should_get_method_prophecies_by_method_name ( Prophecy\Prophecy\MethodProphecy $method1, Prophecy\Prophecy\MethodProphecy $method2, Prophecy\Argument\ArgumentsWildcard $arguments )
$method1 Prophecy\Prophecy\MethodProphecy
$method2 Prophecy\Prophecy\MethodProphecy
$arguments Prophecy\Argument\ArgumentsWildcard

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

public it_should_proxy_getProphecyMethodCalls_to_CallCenter ( $lazyDouble, Prophecy\Call\CallCenter $callCenter, Prophecy\Argument\ArgumentsWildcard $wildcard, Prophecy\Call\Call $call )
$callCenter Prophecy\Call\CallCenter
$wildcard Prophecy\Argument\ArgumentsWildcard
$call Prophecy\Call\Call

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

public it_should_proxy_makeProphecyMethodCall_to_CallCenter ( $lazyDouble, Prophecy\Call\CallCenter $callCenter )
$callCenter Prophecy\Call\CallCenter

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

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

public it_should_reveal_arguments_and_return_values_from_callCenter ( $lazyDouble, Prophecy\Call\CallCenter $callCenter, Prophecy\Prophecy\RevealerInterface $revealer )
$callCenter Prophecy\Call\CallCenter
$revealer Prophecy\Prophecy\RevealerInterface

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

public it_throws_AggregateException_during_checkPredictions_if_predictions_fail ( Prophecy\Prophecy\MethodProphecy $methodProphecy1, Prophecy\Prophecy\MethodProphecy $methodProphecy2, Prophecy\Argument\ArgumentsWildcard $argumentsWildcard1, Prophecy\Argument\ArgumentsWildcard $argumentsWildcard2 )
$methodProphecy1 Prophecy\Prophecy\MethodProphecy
$methodProphecy2 Prophecy\Prophecy\MethodProphecy
$argumentsWildcard1 Prophecy\Argument\ArgumentsWildcard
$argumentsWildcard2 Prophecy\Argument\ArgumentsWildcard

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

public its_addMethodProphecy_adds_method_prophecy ( Prophecy\Prophecy\MethodProphecy $methodProphecy, Prophecy\Argument\ArgumentsWildcard $argumentsWildcard )
$methodProphecy Prophecy\Prophecy\MethodProphecy
$argumentsWildcard Prophecy\Argument\ArgumentsWildcard

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

public its_addMethodProphecy_handles_prophecies_for_different_methods ( Prophecy\Prophecy\MethodProphecy $methodProphecy1, Prophecy\Prophecy\MethodProphecy $methodProphecy2, Prophecy\Argument\ArgumentsWildcard $argumentsWildcard1, Prophecy\Argument\ArgumentsWildcard $argumentsWildcard2 )
$methodProphecy1 Prophecy\Prophecy\MethodProphecy
$methodProphecy2 Prophecy\Prophecy\MethodProphecy
$argumentsWildcard1 Prophecy\Argument\ArgumentsWildcard
$argumentsWildcard2 Prophecy\Argument\ArgumentsWildcard

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

public its_addMethodProphecy_handles_prophecies_with_different_arguments ( Prophecy\Prophecy\MethodProphecy $methodProphecy1, Prophecy\Prophecy\MethodProphecy $methodProphecy2, Prophecy\Argument\ArgumentsWildcard $argumentsWildcard1, Prophecy\Argument\ArgumentsWildcard $argumentsWildcard2 )
$methodProphecy1 Prophecy\Prophecy\MethodProphecy
$methodProphecy2 Prophecy\Prophecy\MethodProphecy
$argumentsWildcard1 Prophecy\Argument\ArgumentsWildcard
$argumentsWildcard2 Prophecy\Argument\ArgumentsWildcard

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

public its_addMethodProphecy_throws_exception_when_method_has_no_ArgumentsWildcard ( Prophecy\Prophecy\MethodProphecy $methodProphecy )
$methodProphecy Prophecy\Prophecy\MethodProphecy

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

public let ( Prophecy\Doubler\LazyDouble $lazyDouble, Prophecy\Prophecy\ProphecySubjectInterface $double )
$lazyDouble Prophecy\Doubler\LazyDouble
$double Prophecy\Prophecy\ProphecySubjectInterface