class NameAlreadyInUseException
@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\NameAlreadyInUseException extends \PHPUnit\Framework\Exception implements \PHPUnit\Framework\MockObject\Generator\Exception
Expanded class hierarchy of NameAlreadyInUseException
1 file declares its use of NameAlreadyInUseException
- MockBuilder.php in vendor/
phpunit/ phpunit/ src/ Framework/ MockObject/ MockBuilder.php
File
-
vendor/
phpunit/ phpunit/ src/ Framework/ MockObject/ Generator/ Exception/ NameAlreadyInUseException.php, line 19
Namespace
PHPUnit\Framework\MockObject\GeneratorView source
final class NameAlreadyInUseException extends \PHPUnit\Framework\Exception implements Exception {
/**
* @psalm-param class-string|trait-string $name
*/
public function __construct(string $name) {
parent::__construct(sprintf('The name "%s" is already in use', $name));
}
}
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 | ||
NameAlreadyInUseException::__construct | public | function | @psalm-param class-string|trait-string $name | Overrides Exception::__construct |