Server IP : 104.21.14.48 / Your IP : 18.119.159.204 [ Web Server : Apache System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64 User : root ( 0) PHP Version : 8.0.30.2 Disable Function : NONE Domains : 0 Domains MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/wp-content/mu-plugins/vendor/wpex/godaddy-launch/phpunit/includes/LiveSiteControl/mocks/ |
Upload File : |
<?php /** * The LiveSiteUnexpectedResponse class. * * @package GoDaddy */ namespace GoDaddy\WordPress\Plugins\Launch\Tests; use GoDaddy\WordPress\Plugins\Launch\LiveSiteControl\LiveSiteControlProvider; /** * The LiveSiteUnexpectedResponse class. */ class LiveSiteUnexpectedResponse extends LiveSiteControlProvider { /** * The LiveSiteSuccessResponse class. * * Typical response: * { * ["headers"]=> array(0) {} * ["body"]=> string(0) "" * ["response"]=> array(4) { * ["code"]=> bool(false) * ["message"] => bool(false) * ["success"] => bool(false) * ["data"] => array(...) * } * ["cookies"]=> array(0) {} * ["http_response"]=> NULL * } * * @param String $url String representing the external URI of the NUX API. * @param Array $body Contains the content sent to NUX API. * @return Array Raw response object from NUX API. */ public function perform_remote_api_post( $url = '', $body = '' ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter return wp_json_encode( array( 'body' => 'Test response.' ) ); } };