예제 #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());
 }