You are here

public function ConjunctionInterceptor::assert in Drupal 7

Executes assertions based on all contained assertions.

Parameters

string $path:

string $command:

Return value

bool

Throws

Exception

Overrides Assertable::assert

File

misc/typo3/phar-stream-wrapper/src/Interceptor/ConjunctionInterceptor.php, line 38

Class

ConjunctionInterceptor

Namespace

TYPO3\PharStreamWrapper\Interceptor

Code

public function assert($path, $command) {
  if ($this
    ->invokeAssertions($path, $command)) {
    return true;
  }
  throw new Exception(sprintf('Assertion failed in "%s"', $path), 1539625084);
}