class ClassIsEnumerationException
@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\Generator\ClassIsEnumerationException extends \PHPUnit\Framework\Exception implements \PHPUnit\Framework\MockObject\Generator\Exception
Expanded class hierarchy of ClassIsEnumerationException
1 file declares its use of ClassIsEnumerationException
- MockBuilder.php in vendor/
phpunit/ phpunit/ src/ Framework/ MockObject/ MockBuilder.php
File
-
vendor/
phpunit/ phpunit/ src/ Framework/ MockObject/ Generator/ Exception/ ClassIsEnumerationException.php, line 19
Namespace
PHPUnit\Framework\MockObject\GeneratorView source
final class ClassIsEnumerationException extends \PHPUnit\Framework\Exception implements Exception {
public function __construct(string $className) {
parent::__construct(sprintf('Class "%s" is an enumeration and cannot be doubled', $className));
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
ClassIsEnumerationException::__construct | public | function | Overrides Exception::__construct | |
Exception::$serializableTrace | protected | property | ||
Exception::getSerializableTrace | public | function | Returns the serializable trace (without 'args'). | |
Exception::__sleep | public | function |