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

Breadcrumb

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

function ProphecyComparator::accepts

Parameters

mixed $expected:

mixed $actual:

Overrides ObjectComparator::accepts

File

vendor/phpspec/prophecy/src/Prophecy/Comparator/ProphecyComparator.php, line 26

Class

ProphecyComparator
@final

Namespace

Prophecy\Comparator

Code

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

API Navigation

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