/** * Constructs StreamNotFoundException * * @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 = 501, Exception $previous = null) { parent::__construct($message, $code, $previous); }
public function test_that_create_returns_exception_instance() { $exception = EventStoreException::create('Something went wrong'); $this->assertInstanceOf('Novuso\\Common\\Domain\\EventStore\\Exception\\EventStoreException', $exception); }