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

Breadcrumb

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

class AssertionFailedError

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

@internal This class is not covered by the backward compatibility promise for PHPUnit

Hierarchy

  • class \PHPUnit\Framework\Exception extends \RuntimeException implements \PHPUnit\Exception
    • class \PHPUnit\Framework\AssertionFailedError extends \PHPUnit\Framework\Exception implements \PHPUnit\Framework\SelfDescribing

Expanded class hierarchy of AssertionFailedError

3 files declare their use of AssertionFailedError
AbstractPhpProcess.php in vendor/phpunit/phpunit/src/Util/PHP/AbstractPhpProcess.php
PhptTestCase.php in vendor/phpunit/phpunit/src/Runner/PhptTestCase.php
ProphecyTrait.php in vendor/phpspec/prophecy-phpunit/src/ProphecyTrait.php

File

vendor/phpunit/phpunit/src/Framework/Exception/AssertionFailedError.php, line 17

Namespace

PHPUnit\Framework
View source
class AssertionFailedError extends Exception implements SelfDescribing {
    
    /**
     * Wrapper for getMessage() which is declared as final.
     */
    public function toString() : string {
        return $this->getMessage();
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
AssertionFailedError::toString public function Wrapper for getMessage() which is declared as final. Overrides SelfDescribing::toString
Exception::$serializableTrace protected property
Exception::getSerializableTrace public function Returns the serializable trace (without 'args').
Exception::__construct public function 30
Exception::__sleep public function

API Navigation

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