public function testUnknownFeed() { $input = json_decode('{ "Foo": [ "search", [ "foo" ] ], "Bar": [ "search", [ "bar", "baz" ] ] }', true); $response = new AfsAcpResponseHelper($input); $this->assertTrue($response->has_replyset()); try { $response->get_replyset('BAZ'); $this->fail('Retrieving replyset from unknown feed should have raised exception!'); } catch (OutOfBoundsException $e) { } }