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:
parent
46196c1ac3
commit
2438c1a43d
@ -14,10 +14,11 @@ class CommonMarkTest extends PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @dataProvider data
|
* @dataProvider data
|
||||||
|
* @param $section
|
||||||
* @param $markdown
|
* @param $markdown
|
||||||
* @param $expectedHtml
|
* @param $expectedHtml
|
||||||
*/
|
*/
|
||||||
function test_($markdown, $expectedHtml)
|
function test_($section, $markdown, $expectedHtml)
|
||||||
{
|
{
|
||||||
$parsedown = new Parsedown();
|
$parsedown = new Parsedown();
|
||||||
|
|
||||||
@ -33,7 +34,6 @@ class CommonMarkTest extends PHPUnit_Framework_TestCase
|
|||||||
$spec = strstr($spec, '<!-- END TESTS -->', true);
|
$spec = strstr($spec, '<!-- END TESTS -->', true);
|
||||||
|
|
||||||
$tests = array();
|
$tests = array();
|
||||||
$testCount = 0;
|
|
||||||
$currentSection = '';
|
$currentSection = '';
|
||||||
|
|
||||||
preg_replace_callback(
|
preg_replace_callback(
|
||||||
@ -48,10 +48,9 @@ class CommonMarkTest extends PHPUnit_Framework_TestCase
|
|||||||
$expectedHtml = $matches[2];
|
$expectedHtml = $matches[2];
|
||||||
$expectedHtml = $this->normalizeMarkup($expectedHtml);
|
$expectedHtml = $this->normalizeMarkup($expectedHtml);
|
||||||
$tests []= array(
|
$tests []= array(
|
||||||
|
$currentSection, # section
|
||||||
$markdown, # markdown
|
$markdown, # markdown
|
||||||
$expectedHtml, # html
|
$expectedHtml, # html
|
||||||
$currentSection, # section
|
|
||||||
$testCount, # number
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user