for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* Changelog keeper
*
* @link https://github.com/hiqdev/chkipper
* @package chkipper
* @license BSD-3-Clause
* @copyright Copyright (c) 2016, HiQDev (http://hiqdev.com/)
*/
namespace hiqdev\chkipper\tests\unit\history;
use hiqdev\chkipper\history\GitLogParser;
use hiqdev\chkipper\history\MarkdownRenderer;
/**
* Git log history parser test case.
* @author Andrii Vasyliev <[email protected]>
class GitLogParserTest extends \PHPUnit_Framework_TestCase
{
* @var GitLogParser
protected $object;
protected function setUp()
$this->object = new GitLogParser();
}
protected function tearDown()
public function testParsePath()
$this->object->parsePath(__DIR__ . '/big-git-log.txt');
$renderer = new MarkdownRenderer();
$text = $renderer->render($this->object->getHistory());
$this->assertEquals(file_get_contents(__DIR__ . '/big-git-log.md'), $text);