/var/www/hkosl.com/littleark/webadmin/libraies/google/auth/tests/BaseTest.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php

namespace Google\Auth\tests;

use 
GuzzleHttp\ClientInterface;

abstract class 
BaseTest extends \PHPUnit_Framework_TestCase
{
    public function 
onlyGuzzle6()
    {
        
$version ClientInterface::VERSION;
        if (
'6' !== $version[0]) {
            
$this->markTestSkipped('Guzzle 6 only');
        }
    }

    public function 
onlyGuzzle5()
    {
        
$version ClientInterface::VERSION;
        if (
'5' !== $version[0]) {
            
$this->markTestSkipped('Guzzle 5 only');
        }
    }

    
/**
     * @see Google\Auth\$this->getValidKeyName
     */
    
public function getValidKeyName($key)
    {
        return 
preg_replace('|[^a-zA-Z0-9_\.! ]|'''$key);
    }
}