/** * @covers Pachico\Abtest\Config\Configuration::getMemory */ public function testGetMemory() { $this->assertInstanceOf('Pachico\\Abtest\\Memory\\MemoryInterface', $this->object->getMemory()); }
/** * * @return Tracking\TrackingInterface */ public function track() { return $this->_configuration->getTracking()->track($this->_configuration->getTests()); }
/** * * @param string $name * @param \Pachico\Abtest\Split\SplitInterface $split * @param \Pachico\Abtest\Segmentation\SegmentatIoninterface $segmentation * @param string $tracking_id */ public function addTest($name, Split\SplitInterface $split, Segmentation\SegmentatIoninterface $segmentation = null, $tracking_id = null) { $test_object = new Test\Test($name, $split, $this->_configuration->getMemory(), $segmentation, $tracking_id); $this->_configuration->addTest($test_object); return $this; }