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

Breadcrumb

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

function Exporter::export

Same name in this branch
  1. 11.1.x vendor/sebastian/exporter/src/Exporter.php \SebastianBergmann\Exporter\Exporter::export()
  2. 11.1.x vendor/symfony/var-exporter/Internal/Exporter.php \Symfony\Component\VarExporter\Internal\Exporter::export()
20 calls to Exporter::export()
ArrayHasKey::toString in vendor/phpunit/phpunit/src/Framework/Constraint/Traversable/ArrayHasKey.php
Returns a string representation of the constraint.
Constraint::failureDescription in vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php
Returns the description of the failure.
Constraint::failureDescriptionInContext in vendor/phpunit/phpunit/src/Framework/Constraint/Constraint.php
Returns the description of the failure when this constraint appears in context of an $operator expression.
DispatchingEmitter::testAssertionFailed in vendor/phpunit/phpunit/src/Event/Emitter/DispatchingEmitter.php
DispatchingEmitter::testAssertionSucceeded in vendor/phpunit/phpunit/src/Event/Emitter/DispatchingEmitter.php

... See full list

File

vendor/phpunit/phpunit/src/Util/Exporter.php, line 25

Class

Exporter
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Namespace

PHPUnit\Util

Code

public static function export(mixed $value, bool $exportObjects = false) : string {
    if (self::isExportable($value) || $exportObjects) {
        return (new \SebastianBergmann\Exporter\Exporter())->export($value);
    }
    return '{enable export of objects to see this value}';
}
RSS feed
Powered by Drupal