mageekguy\atoum\mock\controller::getCalls PHP Method

getCalls() public method

public getCalls ( call $call = null, $identical = false )
$call mageekguy\atoum\test\adapter\call
    public function getCalls(test\adapter\call $call = null, $identical = false)
    {
        if ($call !== null) {
            $this->checkMethod($call->getFunction());
        }
        return parent::getCalls($call, $identical);
    }

Usage Example

Ejemplo n.º 1
0
 public function testResetCalls()
 {
     $this->if($mockController = new testedClass())->and($mockController->{$method = uniqid()} = function () {
     })->then->array($mockController->getCalls())->isEmpty()->if($mockController->invoke($method, array()))->then->array($mockController->getCalls())->isNotEmpty()->object($mockController->resetCalls())->isIdenticalTo($mockController)->array($mockController->getCalls())->isEmpty();
 }
All Usage Examples Of mageekguy\atoum\mock\controller::getCalls