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

Move test/CommonMarkTest.php to test/CommonMarkTestStrict.php

Add parameter `$id` to CommonMark tests
This commit is contained in:
Daniel Rudolf
2016-10-12 02:01:40 +02:00
parent be671e72a3
commit 2423644d72
2 changed files with 9 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
<?php
require_once(__DIR__ . '/CommonMarkTest.php');
require_once(__DIR__ . '/CommonMarkTestStrict.php');
/**
* Test Parsedown against the CommonMark spec, but less aggressive
@@ -13,7 +13,7 @@ require_once(__DIR__ . '/CommonMarkTest.php');
*
* @link http://commonmark.org/ CommonMark
*/
class CommonMarkTestWeak extends CommonMarkTest
class CommonMarkTestWeak extends CommonMarkTestStrict
{
protected $textLevelElementRegex;
@@ -30,11 +30,12 @@ class CommonMarkTestWeak extends CommonMarkTest
/**
* @dataProvider data
* @param $id
* @param $section
* @param $markdown
* @param $expectedHtml
*/
public function testExample($section, $markdown, $expectedHtml)
public function testExample($id, $section, $markdown, $expectedHtml)
{
$expectedHtml = $this->cleanupHtml($expectedHtml);