PHP Class spec\Prophecy\Prophecy\ObjectProphecySpec

Inheritance: extends PhpSpec\ObjectBehavior
Datei anzeigen Open project: phpspec/prophecy

Public Methods

Method Description
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 )

Method Details

it_adds_interface_during_willImplement_call() public method

it_does_not_have_method_prophecies_by_default() public method

it_implements_ProphecyInterface() public method

it_returns_new_MethodProphecy_for_all_callback_signatures() public method

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 method

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 method

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() public method

it_returns_same_MethodProphecy_for_same_registered_signature() public method

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() public method

it_sets_parentClass_during_willExtend_call() public method

it_should_get_method_prophecies_by_method_name() public method

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 method

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 method

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() public method

it_should_reveal_arguments_and_return_values_from_callCenter() public method

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 method

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 method

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 method

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 method

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 method

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

let() public method

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