src/Mock/Handle/HandleTrait.php
public function noInteraction(): ?EventCollection
    {
        if ($result = $this->checkNoInteraction()) {
            return $result;
        }

        $calls = [];

        foreach (get_object_vars($this->state->stubs) as $stub) {
            $calls = array_merge($calls, $stub->allCalls());
        }

        return $this->assertionRecorder->createFailure(
            $this->assertionRenderer->renderNoInteraction($this, $calls)
        );
    }
public function noInteraction(): ?EventCollection
    {
        if ($result = $this->checkNoInteraction()) {
            return $result;
        }

        $calls = [];

        foreach (get_object_vars($this->state->stubs) as $stub) {
            $calls = array_merge($calls, $stub->allCalls());
        }

        return $this->assertionRecorder->createFailure(
            $this->assertionRenderer->renderNoInteraction($this, $calls)
        );
    }
public function noInteraction ( ) : ? EventCollection { if ( $ result = $ this -> checkNoInteraction ( ) ) { return $ result ; } $ calls = [ ] ; foreach ( get_object_vars ( $ this -> state -> stubs ) as $ stub ) { $ calls = array_merge ( $ calls , $ stub -> allCalls ( ) ) ; } return $ this -> assertionRecorder -> createFailure ( $ this -> assertionRenderer -> renderNoInteraction ( $ this , $ calls ) ) ; }
Record an assertion failure unless there was no interaction with the mock.

@return EventCollection|null The result, or null if the assertion recorder does not throw exceptions.
@throws Throwable            If the assertion fails, and the assertion recorder throws exceptions.
Record an assertion failure unless there was no interaction with the mock .