class CannotOpenSocketException
@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\TextUI\CannotOpenSocketException extends \RuntimeException implements \PHPUnit\TextUI\Exception
Expanded class hierarchy of CannotOpenSocketException
2 files declare their use of CannotOpenSocketException
- DefaultPrinter.php in vendor/
phpunit/ phpunit/ src/ TextUI/ Output/ Printer/ DefaultPrinter.php - Facade.php in vendor/
phpunit/ phpunit/ src/ TextUI/ Output/ Facade.php
File
-
vendor/
phpunit/ phpunit/ src/ TextUI/ Exception/ CannotOpenSocketException.php, line 20
Namespace
PHPUnit\TextUIView source
final class CannotOpenSocketException extends RuntimeException implements Exception {
public function __construct(string $hostname, int $port) {
parent::__construct(sprintf('Cannot open socket %s:%d', $hostname, $port));
}
}