You are here

class UnexpectedCallsCountExceptionSpec in Zircon Profile 8.0

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

Hierarchy

Expanded class hierarchy of UnexpectedCallsCountExceptionSpec

File

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

Namespace

spec\Prophecy\Exception\Prediction
View source
class UnexpectedCallsCountExceptionSpec 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, 5, array(
      $call1,
      $call2,
    ));
  }
  function it_extends_UnexpectedCallsException() {
    $this
      ->shouldBeAnInstanceOf('Prophecy\\Exception\\Prediction\\UnexpectedCallsException');
  }
  function it_should_expose_expectedCount_through_getter() {
    $this
      ->getExpectedCount()
      ->shouldReturn(5);
  }

}

Members