public function CodeFilterUnitTestCase::testCodeFilterAttributes in Code Filter 7
Tests <code class="..."> tags (with attributes).
File
- ./
codefilter.test, line 79 - Functional and unit tests for codefilter.module.
Class
- CodeFilterUnitTestCase
- Contains unit tests for codefilter.module.
Code
public function testCodeFilterAttributes() {
$input = <<<EOD
<code class="diff">
line1
line2
</code>
EOD;
$expected = <<<EOD
<div class="codeblock"><code class="diff">line1<br />line2</code></div>
EOD;
$result = $this
->filterText($input);
$this
->assertIdentical($expected, $result);
}