/** * @expectedException InvalidArgumentException */ public function testWeightMustBeNumeric() { $this->edge->setWeight("10"); }