for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the GitElephant package.
*
* (c) Matteo Giachino <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* Just for fun...
*/
namespace GitElephant\Command;
use GitElephant\TestCase;
* LsTreeCommandTest
* LsTreeCommand class tests
* @author Matteo Giachino <[email protected]>
class LsTreeCommandTest extends TestCase
{
* @var \GitElephant\Command\LsTreeCommand
private $lsTreeCommand;
* setUp function
public function setUp(): void
$this->lsTreeCommand = new LsTreeCommand();
}
* fullTree test
* @covers \GitElephant\Command\LsTreeCommand::tree
public function testFullTree(): void
$this->assertEquals("ls-tree '-r' '-t' '-l' 'HEAD'", $this->lsTreeCommand->fullTree(), 'ls-tree command test');
* tree test
public function testTree(): void
$this->assertEquals("ls-tree '-l' 'HEAD'", $this->lsTreeCommand->tree(), 'ls-tree command test');
* listAll test
* @covers \GitElephant\Command\LsTreeCommand::listAll
public function testListAll(): void
$this->assertEquals("ls-tree 'HEAD'", $this->lsTreeCommand->listAll(), 'ls-tree command test');