private function assertNot($message, $selectorId, $exceptionMsg)
    {
        $selector = $this->getDrupalSelector($selectorId);
        $selectorObjects = $this->getSession()->getPage()->findAll("css", $selector);
        if (!empty($selectorObjects)) {
            foreach ($selectorObjects as $selectorObject) {
                if (strpos(trim($selectorObject->getText()), $message) !== false) {
                    throw new ExpectationException(sprintf($exceptionMsg, $this->getSession()->getCurrentUrl(), $message), $this->getSession()->getDriver());
                }
            }
        }
    }
private function assertNot($message, $selectorId, $exceptionMsg)
    {
        $selector = $this->getDrupalSelector($selectorId);
        $selectorObjects = $this->getSession()->getPage()->findAll("css", $selector);
        if (!empty($selectorObjects)) {
            foreach ($selectorObjects as $selectorObject) {
                if (strpos(trim($selectorObject->getText()), $message) !== false) {
                    throw new ExpectationException(sprintf($exceptionMsg, $this->getSession()->getCurrentUrl(), $message), $this->getSession()->getDriver());
                }
            }
        }
    }
private function assertNot ( $ message , $ selectorId , $ exceptionMsg ) { $ selector = $ this -> getDrupalSelector ( $ selectorId ) ; $ selectorObjects = $ this -> getSession ( ) -> getPage ( ) -> findAll ( "css" , $ selector ) ; if ( ! empty ( $ selectorObjects ) ) { foreach ( $ selectorObjects as $ selectorObject ) { if ( strpos ( trim ( $ selectorObject -> getText ( ) ) , $ message ) !== false ) { throw new ExpectationException ( sprintf ( $ exceptionMsg , $ this -> getSession ( ) -> getCurrentUrl ( ) , $ message ) , $ this -> getSession ( ) -> getDriver ( ) ) ; } } } }
Internal callback to check if the current page does not contain the given message

@param $message
string The message to be checked
@param $selectorId
string CSS selector name
@param $exceptionMsg
string The message being thrown when the message is contained, string
should contain two '%s' as placeholders for the current URL and the message.

@throws \Behat\Mink\Exception\ExpectationException
Thrown when the expected message is present in the page.
Internal callback to check if the current page does not contain the given message