1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

improve output readability

This commit is contained in:
Emanuil Rusev 2014-11-29 23:53:38 +02:00
parent 46196c1ac3
commit 2438c1a43d

View File

@ -14,10 +14,11 @@ class CommonMarkTest extends PHPUnit_Framework_TestCase
/**
* @dataProvider data
* @param $section
* @param $markdown
* @param $expectedHtml
*/
function test_($markdown, $expectedHtml)
function test_($section, $markdown, $expectedHtml)
{
$parsedown = new Parsedown();
@ -33,7 +34,6 @@ class CommonMarkTest extends PHPUnit_Framework_TestCase
$spec = strstr($spec, '<!-- END TESTS -->', true);
$tests = array();
$testCount = 0;
$currentSection = '';
preg_replace_callback(
@ -48,10 +48,9 @@ class CommonMarkTest extends PHPUnit_Framework_TestCase
$expectedHtml = $matches[2];
$expectedHtml = $this->normalizeMarkup($expectedHtml);
$tests []= array(
$currentSection, # section
$markdown, # markdown
$expectedHtml, # html
$currentSection, # section
$testCount, # number
);
}
},