Ejemplo n.º 1
0
 /**
  * @covers Pachico\Abtest\Config\Configuration::getMemory
  */
 public function testGetMemory()
 {
     $this->assertInstanceOf('Pachico\\Abtest\\Memory\\MemoryInterface', $this->object->getMemory());
 }
Ejemplo n.º 2
0
 /**
  *
  * @return Tracking\TrackingInterface
  */
 public function track()
 {
     return $this->_configuration->getTracking()->track($this->_configuration->getTests());
 }
Ejemplo n.º 3
0
 /**
  * 
  * @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;
 }