/** * @test */ public function getShouldReturnException() { // given $object = new MyClass(); CatchException::when($object)->someMethodThatThrowsException(); // when $exception = CatchException::get(); // then $this->assertInstanceOf('Exception', $exception); }