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

Breadcrumb

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

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\TextUI
View 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));
    }

}

Members

Title Sort descending Modifiers Object type Summary
CannotOpenSocketException::__construct public function

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal