You are here

public function CodeFilterPrismUnitTestCase::testInlineFilter in Code Filter 7

Checks that <code> and <?php inline escaped and highlighted correctly.

File

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

Class

CodeFilterPrismUnitTestCase
Contains unit tests for codefilter_prism.module.

Code

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