<?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); } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Cache | Folder | 0755 |
|
|
Credentials | Folder | 0755 |
|
|
HttpHandler | Folder | 0755 |
|
|
Middleware | Folder | 0755 |
|
|
Subscriber | Folder | 0755 |
|
|
fixtures | Folder | 0755 |
|
|
fixtures2 | Folder | 0755 |
|
|
mocks | Folder | 0755 |
|
|
ApplicationDefaultCredentialsTest.php | File | 10.13 KB | 0644 |
|
BaseTest.php | File | 706 B | 0644 |
|
CacheTraitTest.php | File | 6.27 KB | 0644 |
|
FetchAuthTokenCacheTest.php | File | 5.1 KB | 0644 |
|
FetchAuthTokenTest.php | File | 7.1 KB | 0644 |
|
OAuth2Test.php | File | 28.48 KB | 0644 |
|
bootstrap.php | File | 1.67 KB | 0644 |
|