%PDF- %PDF-
| Direktori : /proc/self/root/home/bitrix/www/local/php_interface/lib/vendor/google/auth/tests/ |
| Current File : //proc/self/root/home/bitrix/www/local/php_interface/lib/vendor/google/auth/tests/BaseTest.php |
<?php
namespace Google\Auth\tests;
use GuzzleHttp\ClientInterface;
use PHPUnit\Framework\TestCase;
abstract class BaseTest extends 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);
}
}