Page_Tester::setVariance PHP Method

setVariance() public method

public setVariance ( $arr )
    public function setVariance($arr)
    {
        $this->variances = $arr;
        if (isset($this->grid)) {
            foreach ($arr as $key => $item) {
                if (is_numeric($key)) {
                    $key = $item;
                }
                $this->grid->addColumn('html', $key . '_inf', $key . ' info');
                $this->grid->addColumn('html,wrap', $key . '_res', $key . ' result');
            }
        }
    }