diff --git a/tests/suites/unit/joomla/google/JGoogleDataAdsenseTest.php b/tests/suites/unit/joomla/google/JGoogleDataAdsenseTest.php index 30df40930b..2b09a9de9c 100644 --- a/tests/suites/unit/joomla/google/JGoogleDataAdsenseTest.php +++ b/tests/suites/unit/joomla/google/JGoogleDataAdsenseTest.php @@ -380,6 +380,8 @@ public function testExceptions() */ function jsonAdsenseCallback($url, array $headers = null, $timeout = null) { + $response = new stdClass; + $response->code = 200; $response->headers = array('Content-Type' => 'application/json'); $response->body = '{"items":{"1":1,"2":2},"nextPageToken":"1234"}'; @@ -400,6 +402,8 @@ function jsonAdsenseCallback($url, array $headers = null, $timeout = null) */ function jsonAdsenseReportCallback($url, array $headers = null, $timeout = null) { + $response = new stdClass; + $response->code = 200; $response->headers = array('Content-Type' => 'application/json'); $response->body = '{"rows":{"0":1,"1":2},"totalMatchedRows":1}'; @@ -420,6 +424,8 @@ function jsonAdsenseReportCallback($url, array $headers = null, $timeout = null) */ function adsenseExceptionCallback($url, array $headers = null, $timeout = null) { + $response = new stdClass; + $response->code = 200; $response->headers = array('Content-Type' => 'application/json'); $response->body = 'BADDATA'; diff --git a/tests/suites/unit/joomla/google/JGoogleDataCalendarTest.php b/tests/suites/unit/joomla/google/JGoogleDataCalendarTest.php index b781158969..8653e34848 100644 --- a/tests/suites/unit/joomla/google/JGoogleDataCalendarTest.php +++ b/tests/suites/unit/joomla/google/JGoogleDataCalendarTest.php @@ -489,6 +489,8 @@ public function testExceptions() */ function jsonDataCalendarCallback($url, $data, array $headers = null, $timeout = null) { + $response = new stdClass; + $response->code = 200; $response->headers = array('Content-Type' => 'application/json'); $response->body = '{"items":{"1":1,"2":2}}'; @@ -510,6 +512,8 @@ function jsonDataCalendarCallback($url, $data, array $headers = null, $timeout = */ function emptyDataCalendarCallback($url, $data, array $headers = null, $timeout = null) { + $response = new stdClass; + $response->code = 200; $response->headers = array('Content-Type' => 'text/html'); $response->body = ''; @@ -530,6 +534,8 @@ function emptyDataCalendarCallback($url, $data, array $headers = null, $timeout */ function jsonCalendarCallback($url, array $headers = null, $timeout = null) { + $response = new stdClass; + $response->code = 200; $response->headers = array('Content-Type' => 'application/json'); $response->body = '{"items":{"1":1,"2":2}}'; @@ -550,6 +556,8 @@ function jsonCalendarCallback($url, array $headers = null, $timeout = null) */ function emptyCalendarCallback($url, array $headers = null, $timeout = null) { + $response = new stdClass; + $response->code = 200; $response->headers = array('Content-Type' => 'text/html'); $response->body = ''; @@ -570,6 +578,8 @@ function emptyCalendarCallback($url, array $headers = null, $timeout = null) */ function calendarExceptionCallback($url, array $headers = null, $timeout = null) { + $response = new stdClass; + $response->code = 200; $response->headers = array('Content-Type' => 'application/json'); $response->body = 'BADDATA'; @@ -591,6 +601,8 @@ function calendarExceptionCallback($url, array $headers = null, $timeout = null) */ function calendarDataExceptionCallback($url, $data, array $headers = null, $timeout = null) { + $response = new stdClass; + $response->code = 200; $response->headers = array('Content-Type' => 'application/json'); $response->body = 'BADDATA'; diff --git a/tests/suites/unit/joomla/google/JGoogleDataPicasaAlbumTest.php b/tests/suites/unit/joomla/google/JGoogleDataPicasaAlbumTest.php index 42cdaef51b..1e37ae96a6 100644 --- a/tests/suites/unit/joomla/google/JGoogleDataPicasaAlbumTest.php +++ b/tests/suites/unit/joomla/google/JGoogleDataPicasaAlbumTest.php @@ -477,6 +477,8 @@ public function testExceptions() */ function emptyPicasaCallback($url, array $headers = null, $timeout = null) { + $response = new stdClass; + $response->code = 200; $response->headers = array('Content-Type' => 'application/atom+xml'); $response->body = ''; @@ -497,6 +499,8 @@ function emptyPicasaCallback($url, array $headers = null, $timeout = null) */ function picasaPhotolistCallback($url, array $headers = null, $timeout = null) { + $response = new stdClass; + $response->code = 200; $response->headers = array('Content-Type' => 'application/atom+xml'); $response->body = JFile::read(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'photolist.txt'); @@ -518,6 +522,8 @@ function picasaPhotolistCallback($url, array $headers = null, $timeout = null) */ function dataPicasaUploadCallback($url, $data, array $headers = null, $timeout = null) { + $response = new stdClass; + $response->code = 200; $response->headers = array('Content-Type' => 'application/atom+xml'); $response->body = JFile::read(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'photo.txt'); diff --git a/tests/suites/unit/joomla/google/JGoogleDataPicasaPhotoTest.php b/tests/suites/unit/joomla/google/JGoogleDataPicasaPhotoTest.php index d84e37b98d..fc65b7f834 100644 --- a/tests/suites/unit/joomla/google/JGoogleDataPicasaPhotoTest.php +++ b/tests/suites/unit/joomla/google/JGoogleDataPicasaPhotoTest.php @@ -422,6 +422,8 @@ public function testExceptions() */ function picasaPhotoCallback($url, array $headers = null, $timeout = null) { + $response = new stdClass; + $response->code = 200; $response->headers = array('Content-Type' => 'application/atom+xml'); $response->body = JFile::read(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'photo.txt'); @@ -445,6 +447,8 @@ function dataPicasaPhotoCallback($url, $data, array $headers = null, $timeout = { PHPUnit_Framework_TestCase::assertContains('