PHP Class spec\Prophecy\Prophecy\MethodProphecySpec

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

Public Methods

Method Description
it_adds_CallPrediction_during_shouldBeCalled_call ( $objectProphecy )
it_adds_CallTimesPrediction_during_shouldBeCalledTimes_call ( $objectProphecy )
it_adds_CallbackPrediction_during_should_call_with_callback_argument ( $objectProphecy )
it_adds_CallbackPromise_during_will_call_with_callback_argument ( $objectProphecy )
it_adds_NoCallsPrediction_during_shouldNotBeCalled_call ( $objectProphecy )
it_adds_ReturnArgumentPromise_during_willReturnArgument_call ( $objectProphecy )
it_adds_ReturnArgumentPromise_during_willReturnArgument_call_with_index_argument ( $objectProphecy )
it_adds_ReturnPromise_during_willReturn_call ( $objectProphecy )
it_adds_ThrowPromise_during_willThrow_call ( $objectProphecy )
it_adds_itself_to_ObjectProphecy_during_call_to_should ( $objectProphecy, Prophecy\Prediction\PredictionInterface $prediction )
it_adds_itself_to_ObjectProphecy_during_call_to_will ( Prophecy\Promise\PromiseInterface $objectProphecy, $promise )
it_checks_prediction_via_shouldHave_method_call ( $objectProphecy, Prophecy\Argument\ArgumentsWildcard $arguments, Prophecy\Prediction\PredictionInterface $prediction, Prophecy\Call\Call $call1, Prophecy\Call\Call $call2 )
it_checks_prediction_via_shouldHave_method_call_with_callback ( $objectProphecy, Prophecy\Argument\ArgumentsWildcard $arguments, Prophecy\Call\Call $call1, Prophecy\Call\Call $call2 )
it_checks_set_prediction_during_checkPrediction ( $objectProphecy, Prophecy\Argument\ArgumentsWildcard $arguments, Prophecy\Prediction\PredictionInterface $prediction, Prophecy\Call\Call $call1, Prophecy\Call\Call $call2 )
it_contains_ArgumentsWildcard_it_was_constructed_with ( $objectProphecy, Prophecy\Argument\ArgumentsWildcard $wildcard )
it_does_not_set_return_promise_during_shouldHave_call_if_it_was_set_before ( $objectProphecy, Prophecy\Argument\ArgumentsWildcard $arguments, Prophecy\Prediction\PredictionInterface $prediction, Prophecy\Call\Call $call1, Prophecy\Call\Call $call2, Prophecy\Promise\PromiseInterface $promise )
it_does_nothing_during_checkPrediction_if_no_prediction_set ( )
it_has_MethodName ( )
it_is_initializable ( )
it_links_back_to_ObjectProphecy_through_getter ( $objectProphecy )
it_records_checked_predictions ( $objectProphecy, Prophecy\Argument\ArgumentsWildcard $arguments, Prophecy\Prediction\PredictionInterface $prediction1, Prophecy\Prediction\PredictionInterface $prediction2, Prophecy\Call\Call $call1, Prophecy\Call\Call $call2, Prophecy\Promise\PromiseInterface $promise )
it_records_even_failed_checked_predictions ( $objectProphecy, Prophecy\Argument\ArgumentsWildcard $arguments, Prophecy\Prediction\PredictionInterface $prediction, Prophecy\Call\Call $call1, Prophecy\Call\Call $call2, Prophecy\Promise\PromiseInterface $promise )
it_records_prediction_through_should_method ( Prophecy\Prediction\PredictionInterface $prediction, $objectProphecy )
it_records_promise_through_will_method ( Prophecy\Promise\PromiseInterface $promise, $objectProphecy )
it_sets_return_promise_during_shouldHave_call_if_none_was_set_before ( $objectProphecy, Prophecy\Argument\ArgumentsWildcard $arguments, Prophecy\Prediction\PredictionInterface $prediction, Prophecy\Call\Call $call1, Prophecy\Call\Call $call2 )
its_ArgumentWildcard_is_mutable_through_setter ( Prophecy\Argument\ArgumentsWildcard $wildcard )
its_constructor_does_not_touch_third_argument_if_it_is_null ( $objectProphecy )
its_constructor_throws_MethodNotFoundException_for_unexisting_method ( $objectProphecy )
its_constructor_throws_MethodProphecyException_for_final_methods ( $objectProphecy, ClassWithFinalMethod $subject )
its_constructor_transforms_array_passed_as_3rd_argument_to_ArgumentsWildcard ( $objectProphecy )
its_withArguments_throws_exception_if_wrong_arguments_provided ( )
its_withArguments_transforms_passed_array_into_ArgumentsWildcard ( )
let ( Prophecy\Prophecy\ObjectProphecy $objectProphecy, ReflectionClass $reflection )

Method Details

it_adds_CallPrediction_during_shouldBeCalled_call() public method

it_adds_CallTimesPrediction_during_shouldBeCalledTimes_call() public method

it_adds_CallbackPrediction_during_should_call_with_callback_argument() public method

it_adds_CallbackPromise_during_will_call_with_callback_argument() public method

it_adds_NoCallsPrediction_during_shouldNotBeCalled_call() public method

it_adds_ReturnArgumentPromise_during_willReturnArgument_call() public method

it_adds_ReturnArgumentPromise_during_willReturnArgument_call_with_index_argument() public method

it_adds_ReturnPromise_during_willReturn_call() public method

it_adds_ThrowPromise_during_willThrow_call() public method

public it_adds_ThrowPromise_during_willThrow_call ( $objectProphecy )

it_adds_itself_to_ObjectProphecy_during_call_to_should() public method

public it_adds_itself_to_ObjectProphecy_during_call_to_should ( $objectProphecy, Prophecy\Prediction\PredictionInterface $prediction )
$prediction Prophecy\Prediction\PredictionInterface

it_adds_itself_to_ObjectProphecy_during_call_to_will() public method

public it_adds_itself_to_ObjectProphecy_during_call_to_will ( Prophecy\Promise\PromiseInterface $objectProphecy, $promise )
$objectProphecy Prophecy\Promise\PromiseInterface

it_checks_prediction_via_shouldHave_method_call() public method

public it_checks_prediction_via_shouldHave_method_call ( $objectProphecy, Prophecy\Argument\ArgumentsWildcard $arguments, Prophecy\Prediction\PredictionInterface $prediction, Prophecy\Call\Call $call1, Prophecy\Call\Call $call2 )
$arguments Prophecy\Argument\ArgumentsWildcard
$prediction Prophecy\Prediction\PredictionInterface
$call1 Prophecy\Call\Call
$call2 Prophecy\Call\Call

it_checks_prediction_via_shouldHave_method_call_with_callback() public method

public it_checks_prediction_via_shouldHave_method_call_with_callback ( $objectProphecy, Prophecy\Argument\ArgumentsWildcard $arguments, Prophecy\Call\Call $call1, Prophecy\Call\Call $call2 )
$arguments Prophecy\Argument\ArgumentsWildcard
$call1 Prophecy\Call\Call
$call2 Prophecy\Call\Call

it_checks_set_prediction_during_checkPrediction() public method

public it_checks_set_prediction_during_checkPrediction ( $objectProphecy, Prophecy\Argument\ArgumentsWildcard $arguments, Prophecy\Prediction\PredictionInterface $prediction, Prophecy\Call\Call $call1, Prophecy\Call\Call $call2 )
$arguments Prophecy\Argument\ArgumentsWildcard
$prediction Prophecy\Prediction\PredictionInterface
$call1 Prophecy\Call\Call
$call2 Prophecy\Call\Call

it_contains_ArgumentsWildcard_it_was_constructed_with() public method

public it_contains_ArgumentsWildcard_it_was_constructed_with ( $objectProphecy, Prophecy\Argument\ArgumentsWildcard $wildcard )
$wildcard Prophecy\Argument\ArgumentsWildcard

it_does_not_set_return_promise_during_shouldHave_call_if_it_was_set_before() public method

public it_does_not_set_return_promise_during_shouldHave_call_if_it_was_set_before ( $objectProphecy, Prophecy\Argument\ArgumentsWildcard $arguments, Prophecy\Prediction\PredictionInterface $prediction, Prophecy\Call\Call $call1, Prophecy\Call\Call $call2, Prophecy\Promise\PromiseInterface $promise )
$arguments Prophecy\Argument\ArgumentsWildcard
$prediction Prophecy\Prediction\PredictionInterface
$call1 Prophecy\Call\Call
$call2 Prophecy\Call\Call
$promise Prophecy\Promise\PromiseInterface

it_does_nothing_during_checkPrediction_if_no_prediction_set() public method

it_has_MethodName() public method

public it_has_MethodName ( )

it_is_initializable() public method

public it_is_initializable ( )

it_records_checked_predictions() public method

public it_records_checked_predictions ( $objectProphecy, Prophecy\Argument\ArgumentsWildcard $arguments, Prophecy\Prediction\PredictionInterface $prediction1, Prophecy\Prediction\PredictionInterface $prediction2, Prophecy\Call\Call $call1, Prophecy\Call\Call $call2, Prophecy\Promise\PromiseInterface $promise )
$arguments Prophecy\Argument\ArgumentsWildcard
$prediction1 Prophecy\Prediction\PredictionInterface
$prediction2 Prophecy\Prediction\PredictionInterface
$call1 Prophecy\Call\Call
$call2 Prophecy\Call\Call
$promise Prophecy\Promise\PromiseInterface

it_records_even_failed_checked_predictions() public method

public it_records_even_failed_checked_predictions ( $objectProphecy, Prophecy\Argument\ArgumentsWildcard $arguments, Prophecy\Prediction\PredictionInterface $prediction, Prophecy\Call\Call $call1, Prophecy\Call\Call $call2, Prophecy\Promise\PromiseInterface $promise )
$arguments Prophecy\Argument\ArgumentsWildcard
$prediction Prophecy\Prediction\PredictionInterface
$call1 Prophecy\Call\Call
$call2 Prophecy\Call\Call
$promise Prophecy\Promise\PromiseInterface

it_records_prediction_through_should_method() public method

public it_records_prediction_through_should_method ( Prophecy\Prediction\PredictionInterface $prediction, $objectProphecy )
$prediction Prophecy\Prediction\PredictionInterface

it_records_promise_through_will_method() public method

public it_records_promise_through_will_method ( Prophecy\Promise\PromiseInterface $promise, $objectProphecy )
$promise Prophecy\Promise\PromiseInterface

it_sets_return_promise_during_shouldHave_call_if_none_was_set_before() public method

public it_sets_return_promise_during_shouldHave_call_if_none_was_set_before ( $objectProphecy, Prophecy\Argument\ArgumentsWildcard $arguments, Prophecy\Prediction\PredictionInterface $prediction, Prophecy\Call\Call $call1, Prophecy\Call\Call $call2 )
$arguments Prophecy\Argument\ArgumentsWildcard
$prediction Prophecy\Prediction\PredictionInterface
$call1 Prophecy\Call\Call
$call2 Prophecy\Call\Call

its_ArgumentWildcard_is_mutable_through_setter() public method

public its_ArgumentWildcard_is_mutable_through_setter ( Prophecy\Argument\ArgumentsWildcard $wildcard )
$wildcard Prophecy\Argument\ArgumentsWildcard

its_constructor_does_not_touch_third_argument_if_it_is_null() public method

its_constructor_throws_MethodNotFoundException_for_unexisting_method() public method

its_constructor_throws_MethodProphecyException_for_final_methods() public method

public its_constructor_throws_MethodProphecyException_for_final_methods ( $objectProphecy, ClassWithFinalMethod $subject )
$subject ClassWithFinalMethod

its_constructor_transforms_array_passed_as_3rd_argument_to_ArgumentsWildcard() public method

its_withArguments_throws_exception_if_wrong_arguments_provided() public method

its_withArguments_transforms_passed_array_into_ArgumentsWildcard() public method

let() public method

public let ( Prophecy\Prophecy\ObjectProphecy $objectProphecy, ReflectionClass $reflection )
$objectProphecy Prophecy\Prophecy\ObjectProphecy
$reflection ReflectionClass