Файл: src/vendor/phpspec/prophecy/spec/Prophecy/Exception/Prediction/UnexpectedCallsExceptionSpec.php
Строк: 28
<?php
namespace specProphecyExceptionPrediction;
use PhpSpecObjectBehavior;
class UnexpectedCallsExceptionSpec extends ObjectBehavior
{
/**
* @param ProphecyProphecyObjectProphecy $objectProphecy
* @param ProphecyProphecyMethodProphecy $methodProphecy
* @param ProphecyCallCall $call1
* @param ProphecyCallCall $call2
*/
function let($objectProphecy, $methodProphecy, $call1, $call2)
{
$methodProphecy->getObjectProphecy()->willReturn($objectProphecy);
$this->beConstructedWith('message', $methodProphecy, array($call1, $call2));
}
function it_is_PredictionException()
{
$this->shouldHaveType('ProphecyExceptionPredictionPredictionException');
}
function it_extends_MethodProphecyException()
{
$this->shouldHaveType('ProphecyExceptionProphecyMethodProphecyException');
}
function it_should_expose_calls_list_through_getter($call1, $call2)
{
$this->getCalls()->shouldReturn(array($call1, $call2));
}
}