Ouzo\Tests\Mock\ReceivedTimesCallVerifier::__call PHP Метод

__call() публичный Метод

public __call ( $name, $arguments )
    public function __call($name, $arguments)
    {
        if ($this->numberOfActualCalls($name, $arguments) === $this->times) {
            return $this;
        }
        $calls = $this->_actualCalls();
        $expected = MethodCall::newInstance($name, $arguments)->toString() . ' is called ' . $this->times . ' times';
        $this->_fail("Called method incorrect times", $expected, $calls);
    }
ReceivedTimesCallVerifier