for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of CaptainHook.
*
* (c) Sebastian Feldmann <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace CaptainHook\App\Console\Command\Hook;
use CaptainHook\App\Console\IO\NullIO;
use CaptainHook\App\Git\DummyRepo;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Tests\Fixtures\DummyOutput;
use PHPUnit\Framework\TestCase;
class PostMergeTest extends TestCase
{
* Tests PostMerge::run
public function testExecute(): void
if (\defined('PHP_WINDOWS_VERSION_MAJOR')) {
$this->markTestSkipped('not tested on windows');
}
$repo = new DummyRepo();
$repo->setup();
$cmd = new PostMerge(CH_PATH_FILES . '/config/empty.json', $repo->getPath());
$output = new DummyOutput();
$input = new ArrayInput(
[
'squash' => 0
]
);
$cmd->setIO(new NullIO());
$cmd->run($input, $output);
$repo->cleanup();
$this->assertTrue(true);