Skip to content

Commit

Permalink
WIP / Output
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Nov 3, 2024
1 parent fff4e6a commit 58b64c4
Show file tree
Hide file tree
Showing 9 changed files with 603 additions and 0 deletions.
178 changes: 178 additions & 0 deletions tests/Core/Generators/ExpectedOutputMultipleDocs.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
<html>
<head>
<title>GeneratorTest Coding Standards</title>
<style>
body {
background-color: #FFFFFF;
font-size: 14px;
font-family: Arial, Helvetica, sans-serif;
color: #000000;
}

h1 {
color: #666666;
font-size: 20px;
font-weight: bold;
margin-top: 0px;
background-color: #E6E7E8;
padding: 20px;
border: 1px solid #BBBBBB;
}

h2 {
color: #00A5E3;
font-size: 16px;
font-weight: normal;
margin-top: 50px;
}

.code-comparison {
width: 100%;
}

.code-comparison td {
border: 1px solid #CCCCCC;
}

.code-comparison-title, .code-comparison-code {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
vertical-align: top;
padding: 4px;
width: 50%;
background-color: #F1F1F1;
line-height: 15px;
}

.code-comparison-code {
font-family: Courier;
background-color: #F9F9F9;
}

.code-comparison-highlight {
background-color: #DDF1F7;
border: 1px solid #00A5E3;
line-height: 15px;
}

.tag-line {
text-align: center;
width: 100%;
margin-top: 30px;
font-size: 12px;
}

.tag-line a {
color: #000000;
}
</style>
</head>
<body>
<h1>GeneratorTest Coding Standards</h1>
<h2>Table of Contents</h2>
<ul class="toc">
<li><a href="#No-Content">No Content</a></li>
<li><a href="#One-Standard-Block,-Code-Comparison">One Standard Block, Code Comparison</a></li>
<li><a href="#One-Standard-Block,-No-Code">One Standard Block, No Code</a></li>
<li><a href="#One-Standard-Block,-Two-Code-Comparisons">One Standard Block, Two Code Comparisons</a></li>
<li><a href="#Two-Standard-Blocks,-No-Code">Two Standard Blocks, No Code</a></li>
<li><a href="#Two-Standard-Blocks,-One-Code-Comparison">Two Standard Blocks, One Code Comparison</a></li>
<li><a href="#Two-Standard-Blocks,-Three-Code-Comparisons">Two Standard Blocks, Three Code Comparisons</a></li>
</ul>
<a name="No-Content" />
<h2>No Content</h2>
<a name="One-Standard-Block,-Code-Comparison" />
<h2>One Standard Block, Code Comparison</h2>
<p class="text">Documentation contains one standard block and one code comparison.</p>
<table class="code-comparison">
<tr>
<td class="code-comparison-title">Valid: Lorem ipsum dolor sit amet.</td>
<td class="code-comparison-title">Invalid: Maecenas non rutrum dolor.</td>
</tr>
<tr>
<td class="code-comparison-code"><span class="code-comparison-highlight">class&nbsp;Code</span>&nbsp;{}</td>
<td class="code-comparison-code"><span class="code-comparison-highlight">class&nbsp;Comparison</span>&nbsp;{}</td>
</tr>
</table>
<a name="One-Standard-Block,-No-Code" />
<h2>One Standard Block, No Code</h2>
<p class="text">Documentation contains one standard block and no code comparison.</p>
<a name="One-Standard-Block,-Two-Code-Comparisons" />
<h2>One Standard Block, Two Code Comparisons</h2>
<p class="text">Documentation contains one standard block and two code comparisons.</p>
<table class="code-comparison">
<tr>
<td class="code-comparison-title">Valid: Etiam commodo magna at vestibulum blandit.</td>
<td class="code-comparison-title">Invalid: Vivamus lacinia ante velit.</td>
</tr>
<tr>
<td class="code-comparison-code"><span class="code-comparison-highlight">class&nbsp;Code</span>&nbsp;{}</td>
<td class="code-comparison-code"><span class="code-comparison-highlight">class&nbsp;Comparison</span>&nbsp;{}</td>
</tr>
</table>
<table class="code-comparison">
<tr>
<td class="code-comparison-title">Valid: Pellentesque nisi neque.</td>
<td class="code-comparison-title">Invalid: Mauris dictum metus quis maximus pharetra.</td>
</tr>
<tr>
<td class="code-comparison-code"><span class="code-comparison-highlight">$one</span>&nbsp;=&nbsp;10;</td>
<td class="code-comparison-code"><span class="code-comparison-highlight">$a</span>&nbsp;=&nbsp;10;</td>
</tr>
</table>
<a name="Two-Standard-Blocks,-No-Code" />
<h2>Two Standard Blocks, No Code</h2>
<p class="text">This is standard block one.</p>
<p class="text">This is standard block two.</p>
<a name="Two-Standard-Blocks,-One-Code-Comparison" />
<h2>Two Standard Blocks, One Code Comparison</h2>
<p class="text">This is standard block one.</p>
<table class="code-comparison">
<tr>
<td class="code-comparison-title">Valid: Vestibulum et orci condimentum.</td>
<td class="code-comparison-title">Invalid: Donec in nisl ut tortor convallis interdum.</td>
</tr>
<tr>
<td class="code-comparison-code">class&nbsp;<span class="code-comparison-highlight">Code</span>&nbsp;{}</td>
<td class="code-comparison-code">class&nbsp;<span class="code-comparison-highlight">Comparison</span>&nbsp;{}</td>
</tr>
</table>
<p class="text">This is standard block two.</p>
<a name="Two-Standard-Blocks,-Three-Code-Comparisons" />
<h2>Two Standard Blocks, Three Code Comparisons</h2>
<p class="text">This is standard block one.</p>
<table class="code-comparison">
<tr>
<td class="code-comparison-title">Valid: Vestibulum et orci condimentum.</td>
<td class="code-comparison-title">Invalid: Donec in nisl ut tortor convallis interdum.</td>
</tr>
<tr>
<td class="code-comparison-code"><span class="code-comparison-highlight">class&nbsp;Code</span>&nbsp;{}</td>
<td class="code-comparison-code"><span class="code-comparison-highlight">class&nbsp;Comparison</span>&nbsp;{}</td>
</tr>
</table>
<p class="text">This is standard block two.</p>
<table class="code-comparison">
<tr>
<td class="code-comparison-title">Valid: Pellentesque nisi neque.</td>
<td class="code-comparison-title">Invalid: Mauris dictum metus quis maximus pharetra.</td>
</tr>
<tr>
<td class="code-comparison-code"><span class="code-comparison-highlight">$one</span>&nbsp;=&nbsp;10;</td>
<td class="code-comparison-code"><span class="code-comparison-highlight">$a</span>&nbsp;=&nbsp;10;</td>
</tr>
</table>
<table class="code-comparison">
<tr>
<td class="code-comparison-title">Valid: Quisque sagittis nisi vitae.</td>
<td class="code-comparison-title">Invalid: Morbi ac libero vitae lorem.</td>
</tr>
<tr>
<td class="code-comparison-code"><span class="code-comparison-highlight">echo</span>&nbsp;$foo;</td>
<td class="code-comparison-code"><span class="code-comparison-highlight">print</span>&nbsp;$foo;</td>
</tr>
</table>
<div class="tag-line">Documentation generated on #REDACTED# by <a href="https://github.com/PHPCSStandards/PHP_CodeSniffer">PHP_CodeSniffer #VERSION#</a></div>
</body>
</html>
151 changes: 151 additions & 0 deletions tests/Core/Generators/ExpectedOutputMultipleDocs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
# GeneratorTest Coding Standard

## No Content

## One Standard Block, Code Comparison

Check failure on line 5 in tests/Core/Generators/ExpectedOutputMultipleDocs.md

View workflow job for this annotation

GitHub Actions / Lint Markdown / Lint Markdown

Headings should be surrounded by blank lines

tests/Core/Generators/ExpectedOutputMultipleDocs.md:5 MD022/blanks-around-headings Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## One Standard Block, Code Comparison"] https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md022.md
Documentation contains one standard block and one code comparison.
<table>

Check failure on line 7 in tests/Core/Generators/ExpectedOutputMultipleDocs.md

View workflow job for this annotation

GitHub Actions / Lint Markdown / Lint Markdown

Inline HTML

tests/Core/Generators/ExpectedOutputMultipleDocs.md:7:3 MD033/no-inline-html Inline HTML [Element: table] https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md033.md
<tr>

Check failure on line 8 in tests/Core/Generators/ExpectedOutputMultipleDocs.md

View workflow job for this annotation

GitHub Actions / Lint Markdown / Lint Markdown

Inline HTML

tests/Core/Generators/ExpectedOutputMultipleDocs.md:8:4 MD033/no-inline-html Inline HTML [Element: tr] https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md033.md
<th>Valid: Lorem ipsum dolor sit amet.</th>

Check failure on line 9 in tests/Core/Generators/ExpectedOutputMultipleDocs.md

View workflow job for this annotation

GitHub Actions / Lint Markdown / Lint Markdown

Inline HTML

tests/Core/Generators/ExpectedOutputMultipleDocs.md:9:5 MD033/no-inline-html Inline HTML [Element: th] https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md033.md
<th>Invalid: Maecenas non rutrum dolor.</th>

Check failure on line 10 in tests/Core/Generators/ExpectedOutputMultipleDocs.md

View workflow job for this annotation

GitHub Actions / Lint Markdown / Lint Markdown

Inline HTML

tests/Core/Generators/ExpectedOutputMultipleDocs.md:10:5 MD033/no-inline-html Inline HTML [Element: th] https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md033.md
</tr>
<tr>

Check failure on line 12 in tests/Core/Generators/ExpectedOutputMultipleDocs.md

View workflow job for this annotation

GitHub Actions / Lint Markdown / Lint Markdown

Inline HTML

tests/Core/Generators/ExpectedOutputMultipleDocs.md:12:4 MD033/no-inline-html Inline HTML [Element: tr] https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md033.md
<td>

Check failure on line 13 in tests/Core/Generators/ExpectedOutputMultipleDocs.md

View workflow job for this annotation

GitHub Actions / Lint Markdown / Lint Markdown

Inline HTML

tests/Core/Generators/ExpectedOutputMultipleDocs.md:13:1 MD033/no-inline-html Inline HTML [Element: td] https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md033.md

class Code {}

Check failure on line 15 in tests/Core/Generators/ExpectedOutputMultipleDocs.md

View workflow job for this annotation

GitHub Actions / Lint Markdown / Lint Markdown

Code block style

tests/Core/Generators/ExpectedOutputMultipleDocs.md:15 MD046/code-block-style Code block style [Expected: fenced; Actual: indented] https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md046.md

</td>
<td>

Check failure on line 18 in tests/Core/Generators/ExpectedOutputMultipleDocs.md

View workflow job for this annotation

GitHub Actions / Lint Markdown / Lint Markdown

Inline HTML

tests/Core/Generators/ExpectedOutputMultipleDocs.md:18:1 MD033/no-inline-html Inline HTML [Element: td] https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md033.md

class Comparison {}

Check failure on line 20 in tests/Core/Generators/ExpectedOutputMultipleDocs.md

View workflow job for this annotation

GitHub Actions / Lint Markdown / Lint Markdown

Code block style

tests/Core/Generators/ExpectedOutputMultipleDocs.md:20 MD046/code-block-style Code block style [Expected: fenced; Actual: indented] https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md046.md

</td>
</tr>
</table>

## One Standard Block, No Code
Documentation contains one standard block and no code comparison.

## One Standard Block, Two Code Comparisons
Documentation contains one standard block and two code comparisons.
<table>
<tr>
<th>Valid: Etiam commodo magna at vestibulum blandit.</th>
<th>Invalid: Vivamus lacinia ante velit.</th>
</tr>
<tr>
<td>

class Code {}

</td>
<td>

class Comparison {}

</td>
</tr>
</table>
<table>
<tr>
<th>Valid: Pellentesque nisi neque.</th>
<th>Invalid: Mauris dictum metus quis maximus pharetra.</th>
</tr>
<tr>
<td>

$one = 10;

</td>
<td>

$a = 10;

</td>
</tr>
</table>

## Two Standard Blocks, No Code
This is standard block one.
This is standard block two.

## Two Standard Blocks, One Code Comparison
This is standard block one.
<table>
<tr>
<th>Valid: Vestibulum et orci condimentum.</th>
<th>Invalid: Donec in nisl ut tortor convallis interdum.</th>
</tr>
<tr>
<td>

class Code {}

</td>
<td>

class Comparison {}

</td>
</tr>
</table>
This is standard block two.

## Two Standard Blocks, Three Code Comparisons
This is standard block one.
<table>
<tr>
<th>Valid: Vestibulum et orci condimentum.</th>
<th>Invalid: Donec in nisl ut tortor convallis interdum.</th>
</tr>
<tr>
<td>

class Code {}

</td>
<td>

class Comparison {}

</td>
</tr>
</table>
This is standard block two.
<table>
<tr>
<th>Valid: Pellentesque nisi neque.</th>
<th>Invalid: Mauris dictum metus quis maximus pharetra.</th>
</tr>
<tr>
<td>

$one = 10;

</td>
<td>

$a = 10;

</td>
</tr>
</table>
<table>
<tr>
<th>Valid: Quisque sagittis nisi vitae.</th>
<th>Invalid: Morbi ac libero vitae lorem.</th>
</tr>
<tr>
<td>

echo $foo;

</td>
<td>

print $foo;

</td>
</tr>
</table>
Documentation generated on *REDACTED* by [PHP_CodeSniffer *VERSION*](https://github.com/PHPCSStandards/PHP_CodeSniffer)
Loading

0 comments on commit 58b64c4

Please sign in to comment.