lib/WebDriverExpectedCondition.php
public static function not(self $condition)
    {
        return new static(
            function (WebDriver $driver) use ($condition) {
                $result = call_user_func($condition->getApply(), $driver);

                return !$result;
            }
        );
    }
public static function not(self $condition)
    {
        return new static(
            function (WebDriver $driver) use ($condition) {
                $result = call_user_func($condition->getApply(), $driver);

                return !$result;
            }
        );
    }
public static function not ( self $ condition ) { return new static ( function ( WebDriver $ driver ) use ( $ condition ) { $ result = call_user_func ( $ condition -> getApply ( ) , $ driver ) ; return ! $ result ; } ) ; }
An expectation with the logical opposite condition of the given condition.

@param WebDriverExpectedCondition $condition The condition to be negated.
@return mixed The negation of the result of the given condition.
An expectation with the logical opposite condition of the given condition .