Beispiel #1
0
 /**
  * 
  * @param \Pachico\Abtest\Test\Test $test
  * @param \Pachico\Abtest\Split\SplitInterface $split
  * @return int
  */
 public function getVersion(Test\Test $test, Split\SplitInterface $split)
 {
     if (isset($this->_versions[$test->getName()])) {
         return $this->_versions[$test->getName()];
     }
     $created_version = $split->createVersion();
     $this->_versions[$test->getName()] = $created_version;
     return $this->_versions[$test->getName()];
 }
Beispiel #2
0
 /**
  * @covers Pachico\Abtest\Test\Test::getTrackingId
  */
 public function testGetTracking_id()
 {
     $this->assertSame($this->object->getTrackingId(), 'tracking_id');
 }
Beispiel #3
0
 /**
  *
  * @param \Pachico\Abtest\Test\Test $test
  * @return \Pachico\Abtest\Config\Configuration
  */
 public function addTest(Test\Test $test)
 {
     $this->_tests[$test->getName()] = $test;
     return $this;
 }