You are here

public function CodeFilterUnitTestCase::testCodeFilter in Code Filter 7

Checks that <code> tags are escaped and highlighted correctly.

File

./codefilter.test, line 69
Functional and unit tests for codefilter.module.

Class

CodeFilterUnitTestCase
Contains unit tests for codefilter.module.

Code

public function testCodeFilter() {
  $input = file_get_contents($this->path . '/codefilter.code-input.txt');
  $expected = file_get_contents($this->path . '/codefilter.code-output.txt');
  $result = $this
    ->filterText($input);
  $this
    ->assertIdentical($expected, $result);
}