pho\Runner\Runner::it PHP Method

it() public method

Constructs a new Spec, adding it to the list of specs in the current suite.
public it ( string $title, Closure $closure = null )
$title string A title to be associated with the spec
$closure Closure The closure to invoke when the spec is ran
    public function it($title, \Closure $closure = null)
    {
        $spec = new Spec($title, $closure, $this->current);
        $this->current->addSpec($spec);
    }