Eloquent\Phony\Mock\Handle\AbstractHandle::noInteraction PHP Method

noInteraction() public method

Throws an exception unless there was no interaction with the mock.
public noInteraction ( ) : Eloquent\Phony\Event\EventCollection
return Eloquent\Phony\Event\EventCollection The result.
    public function noInteraction()
    {
        if ($result = $this->checkNoInteraction()) {
            return $result;
        }
        $calls = array();
        foreach (get_object_vars($this->state->stubs) as $stub) {
            $calls = array_merge($calls, $stub->allCalls());
        }
        return $this->assertionRecorder->createFailure($this->assertionRenderer->renderNoInteraction($this, $calls));
    }