/** * @expectedException \BadMethodCallException */ public function testSetInvalidParameter() { $this->analytics->setNonExistant('1'); }