for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Moodle component manager.
*
* @author Luke Carrier <[email protected]>
* @copyright 2016 Luke Carrier
* @license GPL-3.0+
*/
namespace ComponentManager\Test\VersionControl\Git\Command;
use ComponentManager\VersionControl\Git\Command\RemoteAddCommand;
use ComponentManager\VersionControl\Git\GitRemote;
use PHPUnit\Framework\TestCase;
class RemoteAddCommandTest extends TestCase {
public function testGetCommandLine() {
$command = new RemoteAddCommand(new GitRemote(
'origin',
'[email protected]:LukeCarrier/moodle-componentmgr.git'));
$expect = [
'remote',
'add',
'[email protected]:LukeCarrier/moodle-componentmgr.git',
];
$this->assertEquals($expect, $command->getCommandLine());
}