mageekguy\atoum\score::addVoidMethod PHP Method

addVoidMethod() public method

public addVoidMethod ( $file, $class, $method )
    public function addVoidMethod($file, $class, $method)
    {
        $this->voidMethods[] = array('file' => $file, 'class' => $class, 'method' => $method);
        return $this;
    }

Usage Example

Beispiel #1
0
 public function testGetLastVoidMethod()
 {
     $this->if($score = new atoum\score())->then->variable($score->getLastVoidMethod())->isNull()->if($score->addPass())->then->variable($score->getLastVoidMethod())->isNull()->if($score->addVoidMethod($file = uniqid(), $class = uniqid(), $method = uniqid()))->then->array($score->getLastVoidMethod())->isEqualTo(array('file' => $file, 'class' => $class, 'method' => $method));
 }