Beispiel #1
0
 /**
  *
  * @param \Pachico\Abtest\Config\ConfiguratorInterface $configurator
  */
 public function __construct(Config\ConfiguratorInterface $configurator)
 {
     $this->_configuration = $configurator->getConfiguration();
     foreach ($this->_configuration->getTests() as $test) {
         /* @var $test Test\Test */
         $test->getVersion();
     }
     $this->_configuration->getMemory()->save();
 }
Beispiel #2
0
 /**
  * @covers Pachico\Abtest\Config\Configuration::getMemory
  */
 public function testGetMemory()
 {
     $this->assertInstanceOf('Pachico\\Abtest\\Memory\\MemoryInterface', $this->object->getMemory());
 }
Beispiel #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;
 }