BuildTestBase::$portLocks

Same name in other branches
  1. 9 core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::portLocks
  2. 8.9.x core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::portLocks
  3. 10 core/tests/Drupal/BuildTests/Framework/BuildTestBase.php \Drupal\BuildTests\Framework\BuildTestBase::portLocks

A list of ports used by the test.

Prevent the same process finding the same port by storing a list of ports already discovered. This also stores locks so they are not released until the test class is torn down.

Type: \Symfony\Component\Lock\LockInterface[]

File

core/tests/Drupal/BuildTests/Framework/BuildTestBase.php, line 127

Class

BuildTestBase
Provides a workspace to test build processes.

Namespace

Drupal\BuildTests\Framework

Code

private $portLocks = [];

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.