* (c) Bernhard Schussek * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. */ /** * Thrown when a method invocation should not have been made. * * This exception is usually wrapped inside a LimeMockInvocation and should not * bubble up. * * @package Lime * @author Bernhard Schussek * @version SVN: $Id: LimeMockInvocationException.php 23864 2009-11-13 18:06:20Z bschussek $ */ class LimeMockInvocationException extends Exception { /** * Constructor. * * @param LimeMockInvocation $invocation The erroneous method invocation * @param string $message The message describing why the * invocation should not have been * made. The message is appended * at the method name. */ public function __construct(LimeMockInvocation $invocation, $message) { parent::__construct($invocation.' '.$message); } }