public function testReplysetWith() { $input = json_decode('{ "header": { "query": { "userId": "foo", "sessionId": "bar" }, "user": { }, "performance": { "durationMs": 211 }, "info": { } }, "replySet": [ { "meta": { "uri": "Catalog", "totalItems": 5, "totalItemsIsExact": true, "pageItems": 5, "firstPageItem": 1, "lastPageItem": 5, "durationMs": 4, "firstPaFId": 1, "lastPaFId": 1, "producer": "SEARCH" } } ] }'); $config = new AfsHelperConfiguration(); $config->set_helper_format(AfsHelperFormat::HELPERS); $query = new AfsQuery(); $response = new AfsResponseHelper($input, $query, $config); $this->assertEquals(211, $response->get_duration()); $this->assertTrue($response->has_replyset()); $this->assertEquals('Catalog', $response->get_replyset()->get_meta()->get_feed()); $this->assertFalse($response->get_replyset()->has_reply()); }