?> <?php $reevooMark->productReviews(array("sku" => "100A", "numberOfReviews" => 6, "paginated" => true, "locale" => "en-GB")); ?> <?php if (!$reevooMark->productReviews(array("sku" => "10023A", "numberOfReviews" => 6, "paginated" => true, "locale" => "en-GB", "showEmptyMessage" => false))) { ?> <h2>Sorry, no product reviews here</h2> <?php } ?> <?php $reevooMark->customerExperienceReviews(array("numberOfReviews" => 6, "paginated" => true, "locale" => "en-GB")); ?> <?php if (!$reevooMark->customerExperienceReviews(array("trkref" => "REV", "numberOfReviews" => 6, "paginated" => true, "locale" => "en-GB", "showEmptyMessage" => false))) { ?> <h2>Sorry, no customer experience reviews here</h2> <?php } ?> <?php $reevooMark->conversations(array("sku" => "167823", "trkref" => "REV", "locale" => "en-GB")); ?> <?php
function test_customer_experience_reviews_withouth_pagination_and_custom_review_number() { $rvm = new ReevooMark('REV', false, 'http://reevoo'); $http_client = new MockedReevooMarkHttpClient("base_uri", "cache_path"); $http_client->setReturnReference('getData', new ReevooMarkDocument("HTTP/1.1 200 OK\n\nsome data", 123)); $rvm->http_client = $http_client; $http_client->expectOnce("getData", array("/reevoomark/embeddable_customer_experience_reviews?trkref=REV&reviews=6")); $this->assertFalse($rvm->customerExperienceReviews(array("trkref" => "REV", "sku" => "123", "numberOfReviews" => 6))); }