message = 'Test message'; $this->code = 400; $this->description = 'Test description'; $this->exception = new APIResponseException(null, 0, $this->message, $this->code, $this->description); } public function testAPIMessage() { $this->assertEquals($this->message, $this->exception->getAPIMessage()); } public function testAPICode() { $this->assertEquals($this->code, $this->exception->getAPICode()); } public function testAPIDescription() { $this->assertEquals($this->description, $this->exception->getAPIDescription()); } }