PHP 클래스 spec\Prophecy\Prophecy\MethodProphecySpec

상속: extends PhpSpec\ObjectBehavior
파일 보기 프로젝트 열기: phpspec/prophecy

공개 메소드들

메소드 설명
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