/** * @expectedException \InvalidArgumentException */ public function testNoValueException() { $this->config->offsetUnset('foo'); $this->config->get('foo'); }