コード例 #1
0
 public function testConstructorNullPrevious()
 {
     $message = "test";
     $code = 1;
     $exception = new RouteException($message, $code);
     $this->assertEquals($exception->getMessage(), $message);
     $this->assertEquals($exception->getCode(), $code);
     $this->assertNull($exception->getPrevious());
 }