private property BuildTestBase::$portLocks in Drupal 9
Same name and namespace in other branches
- 8 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\FrameworkCode
private $portLocks = [];