Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UnexpectedCallsCountException.php

class UnexpectedCallsCountException

Hierarchy

  • class \Prophecy\Exception\Prophecy\ObjectProphecyException extends \Prophecy\Exception\Prophecy\RuntimeException implements \Prophecy\Exception\Prophecy\ProphecyException
    • class \Prophecy\Exception\Prophecy\MethodProphecyException extends \Prophecy\Exception\Prophecy\ObjectProphecyException
      • class \Prophecy\Exception\Prediction\UnexpectedCallsException extends \Prophecy\Exception\Prophecy\MethodProphecyException implements \Prophecy\Exception\Prediction\PredictionException
        • class \Prophecy\Exception\Prediction\UnexpectedCallsCountException extends \Prophecy\Exception\Prediction\UnexpectedCallsException

Expanded class hierarchy of UnexpectedCallsCountException

1 file declares its use of UnexpectedCallsCountException
CallTimesPrediction.php in vendor/phpspec/prophecy/src/Prophecy/Prediction/CallTimesPrediction.php

File

vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/UnexpectedCallsCountException.php, line 17

Namespace

Prophecy\Exception\Prediction
View source
class UnexpectedCallsCountException extends UnexpectedCallsException {
    private $expectedCount;
    
    /**
     * @param string         $message
     * @param MethodProphecy $methodProphecy
     * @param int            $count
     * @param list<Call>     $calls
     */
    public function __construct($message, MethodProphecy $methodProphecy, $count, array $calls) {
        parent::__construct($message, $methodProphecy, $calls);
        $this->expectedCount = intval($count);
    }
    
    /**
     * @return int
     */
    public function getExpectedCount() {
        return $this->expectedCount;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
MethodProphecyException::$methodProphecy private property
MethodProphecyException::getMethodProphecy public function
ObjectProphecyException::$objectProphecy private property
ObjectProphecyException::getObjectProphecy public function
UnexpectedCallsCountException::$expectedCount private property
UnexpectedCallsCountException::getExpectedCount public function
UnexpectedCallsCountException::__construct public function Overrides UnexpectedCallsException::__construct
UnexpectedCallsException::$calls private property
UnexpectedCallsException::getCalls public function
RSS feed
Powered by Drupal