FUnit\TestSuite::addTest PHP Method

addTest() public method

See also: FUnit::add_test()
public addTest ( $name, Closure $test )
$test Closure
    public function addTest($name, \Closure $test)
    {
        \FUnit::debug_out("Adding test '{$name}' to suite '" . $this->getName() . "'");
        $this->tests[$name] = array('run' => false, 'skipped' => false, 'pass' => false, 'test' => $test, 'errors' => array(), 'assertions' => array());
    }