Scientist\Experiment::getControl PHP Method

getControl() public method

Fetch the control callback.
public getControl ( ) : callable
return callable
    public function getControl()
    {
        return $this->control;
    }

Usage Example

 public function test_that_a_control_callback_can_be_defined()
 {
     $e = new Experiment('test experiment');
     $control = function () {
         return true;
     };
     $e->control($control);
     $this->assertSame($control, $e->getControl());
 }
All Usage Examples Of Scientist\Experiment::getControl