function ConjunctionInterceptor::assert

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

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