Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. StringUtil.php

function StringUtil::stringifyCalls

Stringifies provided array of calls.

Parameters

Call[] $calls Array of Call instances:

Return value

string

File

vendor/phpspec/prophecy/src/Prophecy/Util/StringUtil.php, line 89

Class

StringUtil
String utility.

Namespace

Prophecy\Util

Code

public function stringifyCalls(array $calls) {
    $self = $this;
    return implode(PHP_EOL, array_map(function (Call $call) use ($self) {
        return sprintf('  - %s(%s) @ %s', $call->getMethodName(), implode(', ', array_map(array(
            $self,
            'stringify',
        ), $call->getArguments())), str_replace(GETCWD() . DIRECTORY_SEPARATOR, '', $call->getCallPlace()));
    }, $calls));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal