You are here

public function CodeFilterPrismUnitTestCase::testCodeFilterPrism in Code Filter 7

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

File

modules/codefilter_prism/codefilter_prism.test, line 104
Unit tests for codefilter_prism.module.

Class

CodeFilterPrismUnitTestCase
Contains unit tests for codefilter_prism.module.

Code

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