You are here

public function CodeFilterPrismUnitTestCase::testPhpFilter in Code Filter 7

Checks that <?php tags are escaped and highlighted correctly.

File

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

Class

CodeFilterPrismUnitTestCase
Contains unit tests for codefilter_prism.module.

Code

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