public static function getMessage($code, $default = '500 Internal Server Error') { return Arrays::getValue(self::$_messages, $code, $default); }
/** * @test */ public function shouldReturnDefaultResponseWhenNotFoundCode() { //given $code = 999; //when $response = ResponseMapper::getMessage($code); //then $this->assertEquals('500 Internal Server Error', $response); }