function Behavior::assertCommands

Parameters

array $commands:

1 call to Behavior::assertCommands()
Behavior::withAssertion in misc/typo3/phar-stream-wrapper/src/Behavior.php

File

misc/typo3/phar-stream-wrapper/src/Behavior.php, line 78

Class

Behavior

Namespace

TYPO3\PharStreamWrapper

Code

private function assertCommands(array $commands) {
    $unknownCommands = array_diff($commands, $this->availableCommands);
    if (empty($unknownCommands)) {
        return;
    }
    throw new \LogicException(sprintf('Unknown commands: %s', implode(', ', $unknownCommands)), 1535189881);
}

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