예제 #1
0
 public function testSetFailureException()
 {
     $expectedMessage = 'Expected message';
     $expectedCode = 100;
     $exception = new \Exception($expectedMessage, $expectedCode);
     $expected = array('class' => get_class($exception), 'message' => $expectedMessage, 'code' => $expectedCode, 'trace' => $exception->getTraceAsString());
     $this->entity->setFailureException($exception);
     $this->assertEquals($expected, $this->entity->getFailureException());
 }