function testFilterRetrievalWithInvalidKey() { try { $this->response->filter('notakey'); $this->fail('retrieves non-existing key'); } catch (InvalidArgumentException $expected) { } }