Scientist\Experiment::run PHP 메소드

run() 공개 메소드

Execute the experiment within the laboratory.
public run ( ) : mixed
리턴 mixed
    public function run()
    {
        $this->params = func_get_args();
        return $this->laboratory->runExperiment($this);
    }

Usage Example

예제 #1
0
 public function test_that_running_experiment_with_no_laboratory_executes_control()
 {
     $e = new Experiment('test experiment');
     $e->control(function () {
         return 'foo';
     });
     $v = $e->run();
     $this->assertEquals('foo', $v);
 }