Fucntion signatures should match when containing arrays (PHP5.4 bug)

This commit is contained in:
Simon Welsh 2011-10-29 12:07:58 +13:00
parent 840343ffb7
commit 1eab669f9b

View File

@ -218,7 +218,7 @@ class RestfulServiceTest_MockRestfulService extends RestfulService {
public $session = null;
public function request($subURL = '', $method = "GET", $data = null, $headers = null) {
public function request($subURL = '', $method = "GET", $data = null, $headers = null, $curlOptions = array()) {
if(!$this->session) {
$this->session = new Session(array());
@ -277,7 +277,7 @@ class RestfulServiceTest_MockRestfulService extends RestfulService {
*/
class RestfulServiceTest_MockErrorService extends RestfulService {
public function curlRequest() {
public function curlRequest($url, $method, $data = null, $headers = null, $curlOptions = array()) {
return new RestfulService_Response('<error>HTTP Error</error>', 400);
}