/** * @expectedException \Collections\Exception\TypeException */ public function testRemovingWrongType() { $this->coll->removeKey('testing_does_not_exist'); }