public function testGetComplainsAboutInvalidKeys($key) { $pool = StashWrapper::createEphemeral(); $this->setExpectedException('PHPUnit_Framework_Error_Warning', 'assert'); $pool->get($key, function () { return 'foo'; }); }