GitLabDriverTest.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /*
  3. * This file is part of Composer.
  4. *
  5. * (c) Nils Adermann <naderman@naderman.de>
  6. * Jordi Boggiano <j.boggiano@seld.be>
  7. *
  8. * For the full copyright and license information, please view the LICENSE
  9. * file that was distributed with this source code.
  10. */
  11. namespace Composer\Test\Repository\Vcs;
  12. use Composer\Downloader\TransportException;
  13. use Composer\Repository\Vcs\GitLabDriver;
  14. use Composer\Util\Filesystem;
  15. use Composer\Config;
  16. class GitLabDriverTest extends \PHPUnit_Framework_TestCase
  17. {
  18. public function setUp()
  19. {
  20. $this->config = new Config;
  21. $this->io = $this->getMock('Composer\IO\IOInterface');
  22. $this->process = $this->getMock('Composer\Util\ProcessExecutor');
  23. }
  24. public function testInterfaceIsComplete()
  25. {
  26. $remoteFilesystem = $this->getMockBuilder('Composer\Util\RemoteFilesystem')
  27. ->setConstructorArgs(array($this->io))
  28. ->getMock();
  29. $driver = new GitLabDriver(array('url' => 'http://google.com'), $this->io, $this->config, $this->process, $remoteFilesystem);
  30. }
  31. }