Example #1
0
 /**
  * @covers ::makeFromException
  */
 public function test_makeFromException_return_if_already_instance_of_self()
 {
     // When
     $e = new \Exception('ex message', 123);
     $apiEx = Exception::makeFromException($e);
     $apiEx2 = Exception::makeFromException($apiEx);
     // Then
     $this->assertSame($apiEx, $apiEx2);
 }