lib/WebDriverExpectedCondition.php
public static function titleContains($title)
    {
        return new static(
            function (WebDriver $driver) use ($title) {
                return mb_strpos($driver->getTitle(), $title) !== false;
            }
        );
    }
public static function titleContains($title)
    {
        return new static(
            function (WebDriver $driver) use ($title) {
                return mb_strpos($driver->getTitle(), $title) !== false;
            }
        );
    }
public static function titleContains ( $ title ) { return new static ( function ( WebDriver $ driver ) use ( $ title ) { return mb_strpos ( $ driver -> getTitle ( ) , $ title ) !== false ; } ) ; }
An expectation for checking substring of a page Title.

@param string $title The expected substring of Title.
@return static Condition returns whether current page title contains given string.
An expectation for checking substring of a page Title .