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

Breadcrumb

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

class UnexpectedCallsException

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

Expanded class hierarchy of UnexpectedCallsException

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

File

vendor/phpspec/prophecy/src/Prophecy/Exception/Prediction/UnexpectedCallsException.php, line 18

Namespace

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

}

Members

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