4 * This file is part of the Prophecy.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
6 * Marcello Duarte <marcello.duarte@gmail.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Prophecy\Exception\Call;
14 use Prophecy\Exception\Prophecy\ObjectProphecyException;
15 use Prophecy\Prophecy\ObjectProphecy;
17 class UnexpectedCallException extends ObjectProphecyException
22 public function __construct($message, ObjectProphecy $objectProphecy,
23 $methodName, array $arguments)
25 parent::__construct($message, $objectProphecy);
27 $this->methodName = $methodName;
28 $this->arguments = $arguments;
31 public function getMethodName()
33 return $this->methodName;
36 public function getArguments()
38 return $this->arguments;