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