public function testAutoCreateExperiments()
 {
     DB::table('experiments')->delete();
     $ab = App::make('ab');
     $ab->experiment();
     $this->assertEquals(3, Experiment::count());
 }
示例#2
0
 /**
  * Check if there are active experiments.
  *
  * @return string
  */
 public function hasExperiments()
 {
     $count = Experiment::count();
     return $count > 1;
 }