You are here

private function Behavior::assertCommands in Drupal 7

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);
}