Mise à jour des librairies vendor
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user