public function userWithPass($username, $password)
    {
        $header = base64_encode(sprintf('%s:%s', $username, $password));

        $this->headers['Authorization'] = 'Basic ' . $header;
    }
public function userWithPass($username, $password)
    {
        $header = base64_encode(sprintf('%s:%s', $username, $password));

        $this->headers['Authorization'] = 'Basic ' . $header;
    }
public function userWithPass ( $ username , $ password ) { $ header = base64_encode ( sprintf ( '%s:%s' , $ username , $ password ) ) ; $ this -> headers [ 'Authorization' ] = 'Basic ' . $ header ; }
Set the username and password for send request

@Given /^user "([^"]+)" with pass "([^"]+)"$/

@param string $username
@param string $password
Set the username and password for send request