Definition at line 27 of file MarkdownShapeTest.php.
◆ setUp()
MarkdownShapeTest::setUp |
( |
| ) |
|
|
protected |
◆ stringToHTMLDataProvider()
static MarkdownShapeTest::stringToHTMLDataProvider |
( |
| ) |
|
|
static |
Definition at line 39 of file MarkdownShapeTest.php.
42 [
"lorem",
new HTML(
"<p>lorem</p>\n")],
43 [
"lorem **ipsum**",
new HTML(
"<p>lorem <strong>ipsum</strong></p>\n")],
44 [
"_lorem_ **ipsum**",
new HTML(
"<p><em>lorem</em> <strong>ipsum</strong></p>\n")],
45 [
"# Headline",
new HTML(
"<h1>Headline</h1>\n")],
46 [
"## Headline",
new HTML(
"<h2>Headline</h2>\n")],
47 [
"### Headline",
new HTML(
"<h3>Headline</h3>\n")],
48 [
"1. Lorem\n2. Ipsum",
new HTML(
"<ol>\n<li>Lorem</li>\n<li>Ipsum</li>\n</ol>\n")],
49 [
"- Lorem\n- Ipsum",
new HTML(
"<ul>\n<li>Lorem</li>\n<li>Ipsum</li>\n</ul>\n")],
50 [
"[Link Titel](https://www.ilias.de)",
new HTML(
"<p><a href=\"https://www.ilias.de\">Link Titel</a></p>\n")]
This class currently is a stub only.
◆ stringToPlainDataProvider()
static MarkdownShapeTest::stringToPlainDataProvider |
( |
| ) |
|
|
static |
Definition at line 54 of file MarkdownShapeTest.php.
58 [
"lorem **ipsum**",
new PlainText(
"lorem **ipsum**")],
59 [
"_lorem_ **ipsum**",
new PlainText(
"_lorem_ **ipsum**")],
60 [
"# Headline",
new PlainText(
"# Headline")],
61 [
"## Headline",
new PlainText(
"## Headline")],
62 [
"### Headline",
new PlainText(
"### Headline")],
63 [
"1. Lorem\n2. Ipsum",
new PlainText(
"1. Lorem\n2. Ipsum")],
64 [
"- Lorem\n- Ipsum",
new PlainText(
"- Lorem\n- Ipsum")],
65 [
"[Link Titel](https://www.ilias.de)",
new PlainText(
"[Link Titel](https://www.ilias.de)")]
This class currently is a stub only.
◆ testToHTML()
MarkdownShapeTest::testToHTML |
( |
string |
$markdown_string, |
|
|
HTML |
$expected_html |
|
) |
| |
stringToHTMLDataProvider
Definition at line 72 of file MarkdownShapeTest.php.
74 $text = $this->markdown_shape->fromString($markdown_string);
75 $this->assertEquals($expected_html, $this->markdown_shape->toHTML($text));
◆ testToPlainText()
MarkdownShapeTest::testToPlainText |
( |
string |
$markdown_string, |
|
|
PlainText |
$expected_text |
|
) |
| |
stringToPlainDataProvider
Definition at line 81 of file MarkdownShapeTest.php.
83 $text = $this->markdown_shape->fromString($markdown_string);
84 $this->assertEquals($expected_text, $this->markdown_shape->toPlainText($text));
◆ $markdown_shape
Markdown MarkdownShapeTest::$markdown_shape |
|
protected |
The documentation for this class was generated from the following file: