public function getPathMock(array $queries)
    {
        $path = $this->getPath();

        foreach ($queries as $query => $value) {
            if (is_array($value)) {
                $flatten = $this->flattenQueries($value);

                $value = reset($flatten);
            }

            $path = preg_replace("/\\{({$query})\\}/", $value, $path);
        }

        return $path;
    }
public function getPathMock(array $queries)
    {
        $path = $this->getPath();

        foreach ($queries as $query => $value) {
            if (is_array($value)) {
                $flatten = $this->flattenQueries($value);

                $value = reset($flatten);
            }

            $path = preg_replace("/\\{({$query})\\}/", $value, $path);
        }

        return $path;
    }
public function getPathMock ( array $ queries ) { $ path = $ this -> getPath ( ) ; foreach ( $ queries as $ query => $ value ) { if ( is_array ( $ value ) ) { $ flatten = $ this -> flattenQueries ( $ value ) ; $ value = reset ( $ flatten ) ; } $ path = preg_replace ( "/\\{({$query})\\}/" , $ value , $ path ) ; } return $ path ; }
Gets path mocked with queries values.

@param  array $queries

@return array
Gets path mocked with queries values .