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

Breadcrumb

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

function VarDumperTestTrait::prepareExpectation

2 calls to VarDumperTestTrait::prepareExpectation()
VarDumperTestTrait::assertDumpEquals in vendor/symfony/var-dumper/Test/VarDumperTestTrait.php
VarDumperTestTrait::assertDumpMatchesFormat in vendor/symfony/var-dumper/Test/VarDumperTestTrait.php

File

vendor/symfony/var-dumper/Test/VarDumperTestTrait.php, line 79

Class

VarDumperTestTrait
@author Nicolas Grekas <p@tchwork.com>

Namespace

Symfony\Component\VarDumper\Test

Code

private function prepareExpectation(mixed $expected, int $filter) : string {
    if (!\is_string($expected)) {
        $expected = $this->getDump($expected, null, $filter);
    }
    return rtrim($expected);
}

API Navigation

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