| 1 |
<?php |
| 2 |
|
| 3 |
namespace Google\Auth\Tests; |
| 4 |
|
| 5 |
use GuzzleHttp\ClientInterface; |
| 6 |
|
| 7 |
abstract class BaseTest extends \PHPUnit_Framework_TestCase |
| 8 |
{ |
| 9 |
public function onlyGuzzle6() |
| 10 |
{ |
| 11 |
$version = ClientInterface::VERSION; |
| 12 |
if ('6' !== $version[0]) { |
| 13 |
$this->markTestSkipped('Guzzle 6 only'); |
| 14 |
} |
| 15 |
} |
| 16 |
|
| 17 |
public function onlyGuzzle5() |
| 18 |
{ |
| 19 |
$version = ClientInterface::VERSION; |
| 20 |
if ('5' !== $version[0]) { |
| 21 |
$this->markTestSkipped('Guzzle 5 only'); |
| 22 |
} |
| 23 |
} |
| 24 |
} |