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'));
$this->assertEquals(
['remote', 'add', 'origin', '[email protected]:LukeCarrier/moodle-componentmgr.git'],
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.
$command->getCommandLine());
}
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.