lib/Prediction/NoCallsPrediction.php
public function check(array $calls, FunctionProphecy $prophecy)
    {
        if (!count($calls)) {
            return;
        }

        $verb = count($calls) === 1 ? 'was' : 'were';

        throw new UnexpectedCallsException(sprintf(
            "No calls expected that match:\n".
            "  %s(%s)\n".
            "but %d %s made:\n%s",
            $prophecy->getName(),
            $prophecy->getArgumentsWildcard(),
            count($calls),
            $verb,
            $this->util->stringifyCalls($calls)
        ));
    }
public function check(array $calls, FunctionProphecy $prophecy)
    {
        if (!count($calls)) {
            return;
        }

        $verb = count($calls) === 1 ? 'was' : 'were';

        throw new UnexpectedCallsException(sprintf(
            "No calls expected that match:\n".
            "  %s(%s)\n".
            "but %d %s made:\n%s",
            $prophecy->getName(),
            $prophecy->getArgumentsWildcard(),
            count($calls),
            $verb,
            $this->util->stringifyCalls($calls)
        ));
    }
Tests that there were no calls made.

@param Call[]         $calls
@param FunctionProphecy $prophecy

@throws UnexpectedCallsException