mageekguy\atoum\test::setPhpFunctionMocker PHP Method

setPhpFunctionMocker() public method

public setPhpFunctionMocker ( mageekguy\atoum\php\mocker\funktion $phpFunctionMocker = null )
$phpFunctionMocker mageekguy\atoum\php\mocker\funktion
    public function setPhpFunctionMocker(php\mocker\funktion $phpFunctionMocker = null)
    {
        $this->phpFunctionMocker = $phpFunctionMocker ?: new php\mocker\funktion();
        return $this;
    }

Usage Example

Beispiel #1
0
 function addToTest(atoum\test $test)
 {
     $test->setPhpFunctionMocker($this);
     return $this;
 }
test