src/Context/SQLHandler.php
public function getKeyword($key)
    {
        $this->debugLog(sprintf(
            'Retrieving keyword "%s"',
            $key
        ));

        if (! isset($_SESSION['behat']['GenesisSqlExtension']['keywords'][$key])) {
            throw new \Exception(sprintf(
                'Key "%s" not found in behat store, all keys available: %s',
                $key,
                print_r($_SESSION['behat']['GenesisSqlExtension']['keywords'], true)
            ));
        }

        $value = $_SESSION['behat']['GenesisSqlExtension']['keywords'][$key];

        $this->debugLog(sprintf(
            'Retrieved keyword "%s" with value "%s"',
            $key,
            $value
        ));

        return $value;
    }
public function getKeyword($key)
    {
        $this->debugLog(sprintf(
            'Retrieving keyword "%s"',
            $key
        ));

        if (! isset($_SESSION['behat']['GenesisSqlExtension']['keywords'][$key])) {
            throw new \Exception(sprintf(
                'Key "%s" not found in behat store, all keys available: %s',
                $key,
                print_r($_SESSION['behat']['GenesisSqlExtension']['keywords'], true)
            ));
        }

        $value = $_SESSION['behat']['GenesisSqlExtension']['keywords'][$key];

        $this->debugLog(sprintf(
            'Retrieved keyword "%s" with value "%s"',
            $key,
            $value
        ));

        return $value;
    }
public function getKeyword ( $ key ) { $ this -> debugLog ( sprintf ( 'Retrieving keyword "%s"' , $ key ) ) ; if ( ! isset ( $ _SESSION [ 'behat' ] [ 'GenesisSqlExtension' ] [ 'keywords' ] [ $ key ] ) ) { throw new \ Exception ( sprintf ( 'Key "%s" not found in behat store, all keys available: %s' , $ key , print_r ( $ _SESSION [ 'behat' ] [ 'GenesisSqlExtension' ] [ 'keywords' ] , true ) ) ) ; } $ value = $ _SESSION [ 'behat' ] [ 'GenesisSqlExtension' ] [ 'keywords' ] [ $ key ] ; $ this -> debugLog ( sprintf ( 'Retrieved keyword "%s" with value "%s"' , $ key , $ value ) ) ; return $ value ; }
Fetches a specific keyword from the behat keywords store.
Fetches a specific keyword from the behat keywords store .