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

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

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

Метод Описание
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 )

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

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

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

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

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

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

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

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

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

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

public it_adds_ThrowPromise_during_willThrow_call ( $objectProphecy )

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

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 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 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 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 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 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 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() публичный Метод

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

public it_has_MethodName ( )

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

public it_is_initializable ( )

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

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 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 it_records_prediction_through_should_method ( Prophecy\Prediction\PredictionInterface $prediction, $objectProphecy )
$prediction Prophecy\Prediction\PredictionInterface

it_records_promise_through_will_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 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 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() публичный Метод

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

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

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

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

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

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

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

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