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

Breadcrumb

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

class MethodCannotBeConfiguredException

@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\MockObject\MethodCannotBeConfiguredException extends \PHPUnit\Framework\Exception implements \PHPUnit\Framework\MockObject\Exception

Expanded class hierarchy of MethodCannotBeConfiguredException

1 file declares its use of MethodCannotBeConfiguredException
InvocationMocker.php in vendor/phpunit/phpunit/src/Framework/MockObject/Runtime/Builder/InvocationMocker.php

File

vendor/phpunit/phpunit/src/Framework/MockObject/Exception/MethodCannotBeConfiguredException.php, line 19

Namespace

PHPUnit\Framework\MockObject
View source
final class MethodCannotBeConfiguredException extends \PHPUnit\Framework\Exception implements Exception {
    public function __construct(string $method) {
        parent::__construct(sprintf('Trying to configure method "%s" which cannot be configured because it does not exist, has not been specified, is final, or is static', $method));
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
Exception::$serializableTrace protected property
Exception::getSerializableTrace public function Returns the serializable trace (without 'args').
Exception::__sleep public function
MethodCannotBeConfiguredException::__construct public function Overrides Exception::__construct
RSS feed
Powered by Drupal