示例#1
0
文件: tests.php 项目: khk0613/YHK
 public function testExceptionConstructorWithErrorCode()
 {
     $code = 404;
     $e = new FacebookApiException(array('error_code' => $code));
     $this->assertEquals($code, $e->getCode());
 }
示例#2
0
 public function testExceptionConstructorWithInvalidErrorCode()
 {
     $e = new FacebookApiException(array('error_code' => 'not an int'));
     $this->assertEquals(0, $e->getCode());
 }