You are here

class UnexpectedCallsExceptionSpec in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpspec/prophecy/spec/Prophecy/Exception/Prediction/UnexpectedCallsExceptionSpec.php \spec\Prophecy\Exception\Prediction\UnexpectedCallsExceptionSpec

Hierarchy

Expanded class hierarchy of UnexpectedCallsExceptionSpec

File

vendor/phpspec/prophecy/spec/Prophecy/Exception/Prediction/UnexpectedCallsExceptionSpec.php, line 7

Namespace

spec\Prophecy\Exception\Prediction
View source
class UnexpectedCallsExceptionSpec extends ObjectBehavior {

  /**
   * @param \Prophecy\Prophecy\ObjectProphecy $objectProphecy
   * @param \Prophecy\Prophecy\MethodProphecy $methodProphecy
   * @param \Prophecy\Call\Call               $call1
   * @param \Prophecy\Call\Call               $call2
   */
  function let($objectProphecy, $methodProphecy, $call1, $call2) {
    $methodProphecy
      ->getObjectProphecy()
      ->willReturn($objectProphecy);
    $this
      ->beConstructedWith('message', $methodProphecy, array(
      $call1,
      $call2,
    ));
  }
  function it_is_PredictionException() {
    $this
      ->shouldHaveType('Prophecy\\Exception\\Prediction\\PredictionException');
  }
  function it_extends_MethodProphecyException() {
    $this
      ->shouldHaveType('Prophecy\\Exception\\Prophecy\\MethodProphecyException');
  }
  function it_should_expose_calls_list_through_getter($call1, $call2) {
    $this
      ->getCalls()
      ->shouldReturn(array(
      $call1,
      $call2,
    ));
  }

}

Members