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

@@ -18,8 +18,6 @@
* under the License.
*/
require_once __DIR__ . '/../vendor/autoload.php';
class Google_Service_ServiceTest extends PHPUnit_Framework_TestCase
{
public function setUp()
@@ -30,6 +28,7 @@ class Google_Service_ServiceTest extends PHPUnit_Framework_TestCase
$this->getMock('Google_Collection');
$this->getMock('Google_Service_Resource');
}
/**
* @dataProvider serviceProvider
*/
@@ -41,6 +40,13 @@ class Google_Service_ServiceTest extends PHPUnit_Framework_TestCase
);
}
public function testCaseConflicts()
{
$apis = $this->apiProvider();
$classes = array_unique(array_map('strtolower', $apis));
$this->assertCount(count($apis), $classes);
}
public function serviceProvider()
{
$classes = array();
@@ -58,4 +64,11 @@ class Google_Service_ServiceTest extends PHPUnit_Framework_TestCase
return $classes;
}
public function apiProvider()
{
$classes = array();
$path = __DIR__ . '/../src/Google/Service/*';
return array_filter(glob($path), 'is_dir');
}
}

View File

@@ -1,3 +0,0 @@
<?php
require_once __DIR__ .'/../vendor/autoload.php';