Mise à jour des librairies vendor

This commit is contained in:
Caribana
2018-05-01 14:43:32 +02:00
parent b67375ae8e
commit d776be73fc
5211 changed files with 59115 additions and 25863 deletions

View File

@@ -20,8 +20,9 @@ namespace Google\Auth\Tests;
use google\appengine\api\app_identity\AppIdentityService;
// included from tests\mocks\AppIdentityService.php
use Google\Auth\Credentials\AppIdentityCredentials;
use PHPUnit\Framework\TestCase;
class AppIdentityCredentialsOnAppEngineTest extends \PHPUnit_Framework_TestCase
class AppIdentityCredentialsOnAppEngineTest extends TestCase
{
public function testIsFalseByDefault()
{
@@ -33,9 +34,15 @@ class AppIdentityCredentialsOnAppEngineTest extends \PHPUnit_Framework_TestCase
$_SERVER['SERVER_SOFTWARE'] = 'Google App Engine';
$this->assertTrue(AppIdentityCredentials::onAppEngine());
}
public function testIsTrueWhenAppEngineRuntimeIsPhp()
{
$_SERVER['APPENGINE_RUNTIME'] = 'php';
$this->assertTrue(AppIdentityCredentials::onAppEngine());
}
}
class AppIdentityCredentialsGetCacheKeyTest extends \PHPUnit_Framework_TestCase
class AppIdentityCredentialsGetCacheKeyTest extends TestCase
{
public function testShouldBeEmpty()
{
@@ -44,7 +51,7 @@ class AppIdentityCredentialsGetCacheKeyTest extends \PHPUnit_Framework_TestCase
}
}
class AppIdentityCredentialsFetchAuthTokenTest extends \PHPUnit_Framework_TestCase
class AppIdentityCredentialsFetchAuthTokenTest extends TestCase
{
public function testShouldBeEmptyIfNotOnAppEngine()
{