diff --git a/phpunit.xml.dist b/phpunit.xml.dist index b31a73f..875167a 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,8 +1,8 @@ - + - tests/Test.php + test/Test.php \ No newline at end of file diff --git a/tests/Test.php b/test/Test.php similarity index 100% rename from tests/Test.php rename to test/Test.php diff --git a/tests/bootstrap.php b/test/bootstrap.php similarity index 100% rename from tests/bootstrap.php rename to test/bootstrap.php diff --git a/tests/data/aesthetic_table.html b/test/data/aesthetic_table.html similarity index 100% rename from tests/data/aesthetic_table.html rename to test/data/aesthetic_table.html diff --git a/tests/data/aesthetic_table.md b/test/data/aesthetic_table.md similarity index 100% rename from tests/data/aesthetic_table.md rename to test/data/aesthetic_table.md diff --git a/tests/data/aligned_table.html b/test/data/aligned_table.html similarity index 100% rename from tests/data/aligned_table.html rename to test/data/aligned_table.html diff --git a/tests/data/aligned_table.md b/test/data/aligned_table.md similarity index 100% rename from tests/data/aligned_table.md rename to test/data/aligned_table.md diff --git a/tests/data/atx_heading.html b/test/data/atx_heading.html similarity index 85% rename from tests/data/atx_heading.html rename to test/data/atx_heading.html index 6c9b38e..22d865d 100644 --- a/tests/data/atx_heading.html +++ b/test/data/atx_heading.html @@ -1,8 +1,8 @@ -

h1

-

h2

-

h3

-

h4

-
h5
-
h6
-

closed h1

+

h1

+

h2

+

h3

+

h4

+
h5
+
h6
+

closed h1

#

\ No newline at end of file diff --git a/tests/data/atx_heading.md b/test/data/atx_heading.md similarity index 81% rename from tests/data/atx_heading.md rename to test/data/atx_heading.md index 2d5c6ca..039baaa 100644 --- a/tests/data/atx_heading.md +++ b/test/data/atx_heading.md @@ -1,15 +1,15 @@ -# h1 - -## h2 - -### h3 - -#### h4 - -##### h5 - -###### h6 - -# closed h1 # - +# h1 + +## h2 + +### h3 + +#### h4 + +##### h5 + +###### h6 + +# closed h1 # + # \ No newline at end of file diff --git a/tests/data/automatic_link.html b/test/data/automatic_link.html similarity index 100% rename from tests/data/automatic_link.html rename to test/data/automatic_link.html diff --git a/tests/data/automatic_link.md b/test/data/automatic_link.md similarity index 100% rename from tests/data/automatic_link.md rename to test/data/automatic_link.md diff --git a/tests/data/block-level_html.html b/test/data/block-level_html.html similarity index 100% rename from tests/data/block-level_html.html rename to test/data/block-level_html.html diff --git a/tests/data/block-level_html.md b/test/data/block-level_html.md similarity index 100% rename from tests/data/block-level_html.md rename to test/data/block-level_html.md diff --git a/tests/data/code_block.html b/test/data/code_block.html similarity index 70% rename from tests/data/code_block.html rename to test/data/code_block.html index 6964ccc..889b02d 100644 --- a/tests/data/code_block.html +++ b/test/data/code_block.html @@ -1,8 +1,8 @@ -
<?php
-
-$message = 'Hello World!';
-echo $message;
-
-
> not a quote
-- not a list item
+
<?php
+
+$message = 'Hello World!';
+echo $message;
+
+
> not a quote
+- not a list item
 [not a reference]: http://foo.com
\ No newline at end of file diff --git a/tests/data/code_block.md b/test/data/code_block.md similarity index 69% rename from tests/data/code_block.md rename to test/data/code_block.md index 9eb0fd9..2cfc953 100644 --- a/tests/data/code_block.md +++ b/test/data/code_block.md @@ -1,10 +1,10 @@ - not a quote - - not a list item + not a quote + - not a list item [not a reference]: http://foo.com \ No newline at end of file diff --git a/tests/data/code_span.html b/test/data/code_span.html similarity index 100% rename from tests/data/code_span.html rename to test/data/code_span.html diff --git a/tests/data/code_span.md b/test/data/code_span.md similarity index 100% rename from tests/data/code_span.md rename to test/data/code_span.md diff --git a/tests/data/compound_blockquote.html b/test/data/compound_blockquote.html similarity index 100% rename from tests/data/compound_blockquote.html rename to test/data/compound_blockquote.html diff --git a/tests/data/compound_blockquote.md b/test/data/compound_blockquote.md similarity index 100% rename from tests/data/compound_blockquote.md rename to test/data/compound_blockquote.md diff --git a/tests/data/compound_emphasis.html b/test/data/compound_emphasis.html similarity index 100% rename from tests/data/compound_emphasis.html rename to test/data/compound_emphasis.html diff --git a/tests/data/compound_emphasis.md b/test/data/compound_emphasis.md similarity index 100% rename from tests/data/compound_emphasis.md rename to test/data/compound_emphasis.md diff --git a/tests/data/compound_list.html b/test/data/compound_list.html similarity index 100% rename from tests/data/compound_list.html rename to test/data/compound_list.html diff --git a/tests/data/compound_list.md b/test/data/compound_list.md similarity index 100% rename from tests/data/compound_list.md rename to test/data/compound_list.md diff --git a/tests/data/deeply_nested_list.html b/test/data/deeply_nested_list.html similarity index 100% rename from tests/data/deeply_nested_list.html rename to test/data/deeply_nested_list.html diff --git a/tests/data/deeply_nested_list.md b/test/data/deeply_nested_list.md similarity index 100% rename from tests/data/deeply_nested_list.md rename to test/data/deeply_nested_list.md diff --git a/tests/data/em_strong.html b/test/data/em_strong.html similarity index 100% rename from tests/data/em_strong.html rename to test/data/em_strong.html diff --git a/tests/data/em_strong.md b/test/data/em_strong.md similarity index 100% rename from tests/data/em_strong.md rename to test/data/em_strong.md diff --git a/tests/data/email.html b/test/data/email.html similarity index 100% rename from tests/data/email.html rename to test/data/email.html diff --git a/tests/data/email.md b/test/data/email.md similarity index 100% rename from tests/data/email.md rename to test/data/email.md diff --git a/tests/data/emphasis.html b/test/data/emphasis.html similarity index 82% rename from tests/data/emphasis.html rename to test/data/emphasis.html index 9d3f871..60ff4bd 100644 --- a/tests/data/emphasis.html +++ b/test/data/emphasis.html @@ -1,8 +1,8 @@ -

underscore, asterisk, one two, three four, a, b

-

strong and em and strong and em

-

line -line -line

-

this_is_not_an_emphasis

-

an empty emphasis __ ** is not an emphasis

+

underscore, asterisk, one two, three four, a, b

+

strong and em and strong and em

+

line +line +line

+

this_is_not_an_emphasis

+

an empty emphasis __ ** is not an emphasis

*mixed *double and single asterisk** spans

\ No newline at end of file diff --git a/tests/data/emphasis.md b/test/data/emphasis.md similarity index 77% rename from tests/data/emphasis.md rename to test/data/emphasis.md index a8f0c98..85b9d22 100644 --- a/tests/data/emphasis.md +++ b/test/data/emphasis.md @@ -1,13 +1,13 @@ -_underscore_, *asterisk*, _one two_, *three four*, _a_, *b* - -**strong** and *em* and **strong** and *em* - -_line -line -line_ - -this_is_not_an_emphasis - -an empty emphasis __ ** is not an emphasis - +_underscore_, *asterisk*, _one two_, *three four*, _a_, *b* + +**strong** and *em* and **strong** and *em* + +_line +line +line_ + +this_is_not_an_emphasis + +an empty emphasis __ ** is not an emphasis + *mixed **double and* single asterisk** spans \ No newline at end of file diff --git a/tests/data/escaping.html b/test/data/escaping.html similarity index 100% rename from tests/data/escaping.html rename to test/data/escaping.html diff --git a/tests/data/escaping.md b/test/data/escaping.md similarity index 100% rename from tests/data/escaping.md rename to test/data/escaping.md diff --git a/tests/data/fenced_code_block.html b/test/data/fenced_code_block.html similarity index 100% rename from tests/data/fenced_code_block.html rename to test/data/fenced_code_block.html diff --git a/tests/data/fenced_code_block.md b/test/data/fenced_code_block.md similarity index 100% rename from tests/data/fenced_code_block.md rename to test/data/fenced_code_block.md diff --git a/tests/data/horizontal_rule.html b/test/data/horizontal_rule.html similarity index 73% rename from tests/data/horizontal_rule.html rename to test/data/horizontal_rule.html index 248b791..68da03d 100644 --- a/tests/data/horizontal_rule.html +++ b/test/data/horizontal_rule.html @@ -1,5 +1,5 @@ -
-
-
-
+
+
+
+

\ No newline at end of file diff --git a/tests/data/horizontal_rule.md b/test/data/horizontal_rule.md similarity index 71% rename from tests/data/horizontal_rule.md rename to test/data/horizontal_rule.md index 12efdd3..bf461a9 100644 --- a/tests/data/horizontal_rule.md +++ b/test/data/horizontal_rule.md @@ -1,9 +1,9 @@ ---- - -- - - - - - - - - -*** - +--- + +- - - + + - - - + +*** + ___ \ No newline at end of file diff --git a/tests/data/html_entity.html b/test/data/html_entity.html similarity index 100% rename from tests/data/html_entity.html rename to test/data/html_entity.html diff --git a/tests/data/html_entity.md b/test/data/html_entity.md similarity index 100% rename from tests/data/html_entity.md rename to test/data/html_entity.md diff --git a/tests/data/html_simple.html b/test/data/html_simple.html similarity index 100% rename from tests/data/html_simple.html rename to test/data/html_simple.html diff --git a/tests/data/html_simple.md b/test/data/html_simple.md similarity index 100% rename from tests/data/html_simple.md rename to test/data/html_simple.md diff --git a/tests/data/image_reference.html b/test/data/image_reference.html similarity index 100% rename from tests/data/image_reference.html rename to test/data/image_reference.html diff --git a/tests/data/image_reference.md b/test/data/image_reference.md similarity index 100% rename from tests/data/image_reference.md rename to test/data/image_reference.md diff --git a/tests/data/image_title.html b/test/data/image_title.html similarity index 100% rename from tests/data/image_title.html rename to test/data/image_title.html diff --git a/tests/data/image_title.md b/test/data/image_title.md similarity index 100% rename from tests/data/image_title.md rename to test/data/image_title.md diff --git a/tests/data/implicit_reference.html b/test/data/implicit_reference.html similarity index 100% rename from tests/data/implicit_reference.html rename to test/data/implicit_reference.html diff --git a/tests/data/implicit_reference.md b/test/data/implicit_reference.md similarity index 100% rename from tests/data/implicit_reference.md rename to test/data/implicit_reference.md diff --git a/tests/data/inline_link.html b/test/data/inline_link.html similarity index 100% rename from tests/data/inline_link.html rename to test/data/inline_link.html diff --git a/tests/data/inline_link.md b/test/data/inline_link.md similarity index 100% rename from tests/data/inline_link.md rename to test/data/inline_link.md diff --git a/tests/data/inline_link_title.html b/test/data/inline_link_title.html similarity index 100% rename from tests/data/inline_link_title.html rename to test/data/inline_link_title.html diff --git a/tests/data/inline_link_title.md b/test/data/inline_link_title.md similarity index 100% rename from tests/data/inline_link_title.md rename to test/data/inline_link_title.md diff --git a/tests/data/inline_title.html b/test/data/inline_title.html similarity index 100% rename from tests/data/inline_title.html rename to test/data/inline_title.html diff --git a/tests/data/inline_title.md b/test/data/inline_title.md similarity index 100% rename from tests/data/inline_title.md rename to test/data/inline_title.md diff --git a/tests/data/lazy_blockquote.html b/test/data/lazy_blockquote.html similarity index 100% rename from tests/data/lazy_blockquote.html rename to test/data/lazy_blockquote.html diff --git a/tests/data/lazy_blockquote.md b/test/data/lazy_blockquote.md similarity index 100% rename from tests/data/lazy_blockquote.md rename to test/data/lazy_blockquote.md diff --git a/tests/data/lazy_list.html b/test/data/lazy_list.html similarity index 100% rename from tests/data/lazy_list.html rename to test/data/lazy_list.html diff --git a/tests/data/lazy_list.md b/test/data/lazy_list.md similarity index 100% rename from tests/data/lazy_list.md rename to test/data/lazy_list.md diff --git a/tests/data/line_break.html b/test/data/line_break.html similarity index 60% rename from tests/data/line_break.html rename to test/data/line_break.html index d65cae9..5f37d85 100644 --- a/tests/data/line_break.html +++ b/test/data/line_break.html @@ -1,2 +1,2 @@ -

line
+

line
line

\ No newline at end of file diff --git a/tests/data/line_break.md b/test/data/line_break.md similarity index 58% rename from tests/data/line_break.md rename to test/data/line_break.md index 2908f6f..04dff43 100644 --- a/tests/data/line_break.md +++ b/test/data/line_break.md @@ -1,2 +1,2 @@ -line +line line \ No newline at end of file diff --git a/tests/data/multiline_list_paragraph.html b/test/data/multiline_list_paragraph.html similarity index 100% rename from tests/data/multiline_list_paragraph.html rename to test/data/multiline_list_paragraph.html diff --git a/tests/data/multiline_list_paragraph.md b/test/data/multiline_list_paragraph.md similarity index 100% rename from tests/data/multiline_list_paragraph.md rename to test/data/multiline_list_paragraph.md diff --git a/tests/data/nested_block-level_html.html b/test/data/nested_block-level_html.html similarity index 100% rename from tests/data/nested_block-level_html.html rename to test/data/nested_block-level_html.html diff --git a/tests/data/nested_block-level_html.md b/test/data/nested_block-level_html.md similarity index 100% rename from tests/data/nested_block-level_html.md rename to test/data/nested_block-level_html.md diff --git a/tests/data/ordered_list.html b/test/data/ordered_list.html similarity index 100% rename from tests/data/ordered_list.html rename to test/data/ordered_list.html diff --git a/tests/data/ordered_list.md b/test/data/ordered_list.md similarity index 100% rename from tests/data/ordered_list.md rename to test/data/ordered_list.md diff --git a/tests/data/paragraph_list.html b/test/data/paragraph_list.html similarity index 100% rename from tests/data/paragraph_list.html rename to test/data/paragraph_list.html diff --git a/tests/data/paragraph_list.md b/test/data/paragraph_list.md similarity index 100% rename from tests/data/paragraph_list.md rename to test/data/paragraph_list.md diff --git a/tests/data/reference_title.html b/test/data/reference_title.html similarity index 100% rename from tests/data/reference_title.html rename to test/data/reference_title.html diff --git a/tests/data/reference_title.md b/test/data/reference_title.md similarity index 100% rename from tests/data/reference_title.md rename to test/data/reference_title.md diff --git a/tests/data/self-closing_block-level_html.html b/test/data/self-closing_block-level_html.html similarity index 100% rename from tests/data/self-closing_block-level_html.html rename to test/data/self-closing_block-level_html.html diff --git a/tests/data/self-closing_block-level_html.md b/test/data/self-closing_block-level_html.md similarity index 100% rename from tests/data/self-closing_block-level_html.md rename to test/data/self-closing_block-level_html.md diff --git a/tests/data/setext_header.html b/test/data/setext_header.html similarity index 87% rename from tests/data/setext_header.html rename to test/data/setext_header.html index 41f2b04..60aac08 100644 --- a/tests/data/setext_header.html +++ b/test/data/setext_header.html @@ -1,5 +1,5 @@ -

h1

-

h2

-

single character

-

not a header

+

h1

+

h2

+

single character

+

not a header


\ No newline at end of file diff --git a/tests/data/setext_header.md b/test/data/setext_header.md similarity index 67% rename from tests/data/setext_header.md rename to test/data/setext_header.md index 49e03e0..c43b52c 100644 --- a/tests/data/setext_header.md +++ b/test/data/setext_header.md @@ -1,12 +1,12 @@ -h1 -== - -h2 --- - -single character -- - -not a header - +h1 +== + +h2 +-- + +single character +- + +not a header + ------------ \ No newline at end of file diff --git a/tests/data/simple_blockquote.html b/test/data/simple_blockquote.html similarity index 100% rename from tests/data/simple_blockquote.html rename to test/data/simple_blockquote.html diff --git a/tests/data/simple_blockquote.md b/test/data/simple_blockquote.md similarity index 100% rename from tests/data/simple_blockquote.md rename to test/data/simple_blockquote.md diff --git a/tests/data/simple_table.html b/test/data/simple_table.html similarity index 100% rename from tests/data/simple_table.html rename to test/data/simple_table.html diff --git a/tests/data/simple_table.md b/test/data/simple_table.md similarity index 100% rename from tests/data/simple_table.md rename to test/data/simple_table.md diff --git a/tests/data/span-level_html.html b/test/data/span-level_html.html similarity index 100% rename from tests/data/span-level_html.html rename to test/data/span-level_html.html diff --git a/tests/data/span-level_html.md b/test/data/span-level_html.md similarity index 100% rename from tests/data/span-level_html.md rename to test/data/span-level_html.md diff --git a/tests/data/sparse_dense_list.html b/test/data/sparse_dense_list.html similarity index 100% rename from tests/data/sparse_dense_list.html rename to test/data/sparse_dense_list.html diff --git a/tests/data/sparse_dense_list.md b/test/data/sparse_dense_list.md similarity index 100% rename from tests/data/sparse_dense_list.md rename to test/data/sparse_dense_list.md diff --git a/tests/data/sparse_list.html b/test/data/sparse_list.html similarity index 100% rename from tests/data/sparse_list.html rename to test/data/sparse_list.html diff --git a/tests/data/sparse_list.md b/test/data/sparse_list.md similarity index 100% rename from tests/data/sparse_list.md rename to test/data/sparse_list.md diff --git a/tests/data/special_characters.html b/test/data/special_characters.html similarity index 97% rename from tests/data/special_characters.html rename to test/data/special_characters.html index 79fad4c..8199abc 100644 --- a/tests/data/special_characters.html +++ b/test/data/special_characters.html @@ -1,6 +1,6 @@ -

AT&T has an ampersand in their name

-

this & that

-

4 < 5 and 6 > 5

-

http://example.com/autolink?a=1&b=2

-

inline link

+

AT&T has an ampersand in their name

+

this & that

+

4 < 5 and 6 > 5

+

http://example.com/autolink?a=1&b=2

+

inline link

reference link

\ No newline at end of file diff --git a/tests/data/special_characters.md b/test/data/special_characters.md similarity index 78% rename from tests/data/special_characters.md rename to test/data/special_characters.md index 13597e6..111b03b 100644 --- a/tests/data/special_characters.md +++ b/test/data/special_characters.md @@ -1,13 +1,13 @@ -AT&T has an ampersand in their name - -this & that - -4 < 5 and 6 > 5 - - - -[inline link](/script?a=1&b=2) - -[reference link][1] - +AT&T has an ampersand in their name + +this & that + +4 < 5 and 6 > 5 + + + +[inline link](/script?a=1&b=2) + +[reference link][1] + [1]: http://example.com/?a=1&b=2 \ No newline at end of file diff --git a/tests/data/strikethrough.html b/test/data/strikethrough.html similarity index 100% rename from tests/data/strikethrough.html rename to test/data/strikethrough.html diff --git a/tests/data/strikethrough.md b/test/data/strikethrough.md similarity index 100% rename from tests/data/strikethrough.md rename to test/data/strikethrough.md diff --git a/tests/data/strong_em.html b/test/data/strong_em.html similarity index 100% rename from tests/data/strong_em.html rename to test/data/strong_em.html diff --git a/tests/data/strong_em.md b/test/data/strong_em.md similarity index 100% rename from tests/data/strong_em.md rename to test/data/strong_em.md diff --git a/tests/data/tab-indented_code_block.html b/test/data/tab-indented_code_block.html similarity index 100% rename from tests/data/tab-indented_code_block.html rename to test/data/tab-indented_code_block.html diff --git a/tests/data/tab-indented_code_block.md b/test/data/tab-indented_code_block.md similarity index 100% rename from tests/data/tab-indented_code_block.md rename to test/data/tab-indented_code_block.md diff --git a/tests/data/table_inline_markdown.html b/test/data/table_inline_markdown.html similarity index 100% rename from tests/data/table_inline_markdown.html rename to test/data/table_inline_markdown.html diff --git a/tests/data/table_inline_markdown.md b/test/data/table_inline_markdown.md similarity index 100% rename from tests/data/table_inline_markdown.md rename to test/data/table_inline_markdown.md diff --git a/tests/data/text_reference.html b/test/data/text_reference.html similarity index 100% rename from tests/data/text_reference.html rename to test/data/text_reference.html diff --git a/tests/data/text_reference.md b/test/data/text_reference.md similarity index 100% rename from tests/data/text_reference.md rename to test/data/text_reference.md diff --git a/tests/data/unordered_list.html b/test/data/unordered_list.html similarity index 100% rename from tests/data/unordered_list.html rename to test/data/unordered_list.html diff --git a/tests/data/unordered_list.md b/test/data/unordered_list.md similarity index 100% rename from tests/data/unordered_list.md rename to test/data/unordered_list.md diff --git a/tests/data/untidy_table.html b/test/data/untidy_table.html similarity index 100% rename from tests/data/untidy_table.html rename to test/data/untidy_table.html diff --git a/tests/data/untidy_table.md b/test/data/untidy_table.md similarity index 100% rename from tests/data/untidy_table.md rename to test/data/untidy_table.md diff --git a/tests/data/url_autolinking.html b/test/data/url_autolinking.html similarity index 100% rename from tests/data/url_autolinking.html rename to test/data/url_autolinking.html diff --git a/tests/data/url_autolinking.md b/test/data/url_autolinking.md similarity index 100% rename from tests/data/url_autolinking.md rename to test/data/url_autolinking.md diff --git a/tests/data/whitespace.html b/test/data/whitespace.html similarity index 100% rename from tests/data/whitespace.html rename to test/data/whitespace.html diff --git a/tests/data/whitespace.md b/test/data/whitespace.md similarity index 100% rename from tests/data/whitespace.md rename to test/data/whitespace.md