/** * Constructs FrozenDispatcherException * * @param string $message The exception message * @param int $code The exception code * @param Exception|null $previous The previous exception for chaining */ public function __construct($message = '', $code = 1111, Exception $previous = null) { parent::__construct($message, $code, $previous); }
public function test_that_create_returns_exception_instance() { $exception = EventException::create('Event error'); $this->assertInstanceOf('Novuso\\Common\\Application\\Messaging\\Event\\Exception\\EventException', $exception); }