improve output readability

This commit is contained in:
Emanuil Rusev 2014-11-29 23:53:38 +02:00
parent 46196c1ac3
commit 2438c1a43d
1 changed files with 3 additions and 4 deletions

View File

@ -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
); );
} }
}, },