/** * @expectedException \BadMethodCallException */ public function testInvalidMethodCall() { $this->analytics->iDontExists(); }