Sanpi\Behatch\Context\BaseContext::not PHP Method

not() protected method

protected not ( callable $callbable, $errorMessage )
$callbable callable
    protected function not(callable $callbable, $errorMessage)
    {
        try {
            $callbable();
        } catch (\Exception $e) {
            return;
        }
        throw new ExpectationException($errorMessage, $this->getSession());
    }