class CannotUseOnlyMethodsException
@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\CannotUseOnlyMethodsException extends \PHPUnit\Framework\Exception implements \PHPUnit\Framework\MockObject\Exception
Expanded class hierarchy of CannotUseOnlyMethodsException
File
-
vendor/
phpunit/ phpunit/ src/ Framework/ MockObject/ Exception/ CannotUseOnlyMethodsException.php, line 19
Namespace
PHPUnit\Framework\MockObjectView source
final class CannotUseOnlyMethodsException extends \PHPUnit\Framework\Exception implements Exception {
public function __construct(string $type, string $methodName) {
parent::__construct(sprintf('Trying to configure method "%s" with onlyMethods(), but it does not exist in class "%s"', $methodName, $type));
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
CannotUseOnlyMethodsException::__construct | public | function | Overrides Exception::__construct | |
Exception::$serializableTrace | protected | property | ||
Exception::getSerializableTrace | public | function | Returns the serializable trace (without 'args'). | |
Exception::__sleep | public | function |