get() public static method

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