Exemplo n.º 1
0
 /**
  * @covers Pachico\Abtest\Config\Configuration::getTestByName
  */
 public function testGetTestByName()
 {
     $test = new Test\Test('foo', new Split\ArrayProbability([50, 50]), new Memory\Cookie('foo'));
     $this->object->addTest($test);
     $this->assertSame($test, $this->object->getTestByName('foo'));
     $this->assertNull($this->object->getTestByName('bar'));
 }
Exemplo n.º 2
0
 /**
  *
  * @param string $test_name
  * @return mixed Test\Test|null
  */
 public function getTest($test_name)
 {
     return $this->_configuration->getTestByName($test_name);
 }