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