diff --git a/src/MarketplaceWebService/Mock.php b/src/MarketplaceWebService/Mock.php index bf36506..d9f6ed6 100644 --- a/src/MarketplaceWebService/Mock.php +++ b/src/MarketplaceWebService/Mock.php @@ -425,6 +425,6 @@ public function getReportScheduleList($request) private function invoke($actionName) { - return $xml = file_get_contents('MarketplaceWebService/Mock/' . $actionName . 'Response.xml', /** search include path */ TRUE); + return $xml = file_get_contents(dirname(__FILE__) . '/Mock/' . $actionName . 'Response.xml', /** search include path */ TRUE); } } \ No newline at end of file diff --git a/src/MarketplaceWebService/Mock/SubmitFeedResponse.xml b/src/MarketplaceWebService/Mock/SubmitFeedResponse.xml index f40f20c..2b2edc9 100644 --- a/src/MarketplaceWebService/Mock/SubmitFeedResponse.xml +++ b/src/MarketplaceWebService/Mock/SubmitFeedResponse.xml @@ -4,7 +4,7 @@ string string - string + 2008-09-28T17:49:45 string 2008-09-28T18:49:45 diff --git a/src/MarketplaceWebService/Samples/SubmitFeedSample.php b/src/MarketplaceWebService/Samples/SubmitFeedSample.php index 9be88b4..5efa686 100644 --- a/src/MarketplaceWebService/Samples/SubmitFeedSample.php +++ b/src/MarketplaceWebService/Samples/SubmitFeedSample.php @@ -213,7 +213,7 @@ function invokeSubmitFeed(MarketplaceWebService_Interface $service, $request) if ($feedSubmissionInfo->isSetSubmittedDate()) { echo(" SubmittedDate\n"); - echo(" " . $feedSubmissionInfo->getSubmittedDate()->format(DATE_FORMAT) . "\n"); + echo(" " . $feedSubmissionInfo->getSubmittedDate()->format('Y-m-d H:i:s') . "\n"); } if ($feedSubmissionInfo->isSetFeedProcessingStatus()) { @@ -223,12 +223,12 @@ function invokeSubmitFeed(MarketplaceWebService_Interface $service, $request) if ($feedSubmissionInfo->isSetStartedProcessingDate()) { echo(" StartedProcessingDate\n"); - echo(" " . $feedSubmissionInfo->getStartedProcessingDate()->format(DATE_FORMAT) . "\n"); + echo(" " . $feedSubmissionInfo->getStartedProcessingDate()->format('Y-m-d H:i:s') . "\n"); } if ($feedSubmissionInfo->isSetCompletedProcessingDate()) { echo(" CompletedProcessingDate\n"); - echo(" " . $feedSubmissionInfo->getCompletedProcessingDate()->format(DATE_FORMAT) . "\n"); + echo(" " . $feedSubmissionInfo->getCompletedProcessingDate()->format('Y-m-d H:i:s') . "\n"); } } }