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

Breadcrumb

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

function BrowserCookieValueSame::toString

Overrides SelfDescribing::toString

1 call to BrowserCookieValueSame::toString()
BrowserCookieValueSame::failureDescription in vendor/symfony/browser-kit/Test/Constraint/BrowserCookieValueSame.php

File

vendor/symfony/browser-kit/Test/Constraint/BrowserCookieValueSame.php, line 28

Class

BrowserCookieValueSame

Namespace

Symfony\Component\BrowserKit\Test\Constraint

Code

public function toString() : string {
    $str = \sprintf('has cookie "%s"', $this->name);
    if ('/' !== $this->path) {
        $str .= \sprintf(' with path "%s"', $this->path);
    }
    if ($this->domain) {
        $str .= \sprintf(' for domain "%s"', $this->domain);
    }
    $str .= \sprintf(' with %svalue "%s"', $this->raw ? 'raw ' : '', $this->value);
    return $str;
}

API Navigation

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