/** * @expectedException \Collections\Exception\TypeException */ public function testContainsWithWrongKeyType() { $this->coll->add("one"); $this->coll->containsKey("other"); }