PHPSpec2\Mocker\MockeryMocker::verify PHP Method

verify() public method

public verify ( )
    public function verify()
    {
        try {
            Mockery::close();
        } catch (MockeryCountException $e) {
            $message = $e->getMessage();
            if (preg_match('/^Method ([^ ]+) from ([^ ]+).*(at least|at most|exactly).*(\\d+).*(\\d+)/smi', $message, $matches)) {
                $message = sprintf("Method <value>%s::%s</value>\nshould be called %s %d time(s), but called %d.", $matches[2], $matches[1], $matches[3], $matches[4], $matches[5]);
            }
            throw new MockerException($message);
        }
    }