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

Breadcrumb

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

function ExceptionComparator::accepts

Overrides ObjectComparator::accepts

File

vendor/sebastian/comparator/src/ExceptionComparator.php, line 20

Class

ExceptionComparator
Compares Exception instances for equality.

Namespace

SebastianBergmann\Comparator

Code

public function accepts(mixed $expected, mixed $actual) : bool {
    return $expected instanceof Exception && $actual instanceof Exception;
}

API Navigation

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