public function CodeFilterUnitTestCase::testPhpFilter in Code Filter 7
Checks that <?php tags are escaped and highlighted correctly.
File
- ./
codefilter.test, line 59 - Functional and unit tests for codefilter.module.
Class
- CodeFilterUnitTestCase
- Contains unit tests for codefilter.module.
Code
public function testPhpFilter() {
$input = file_get_contents($this->path . '/codefilter.php-input.txt');
$expected = file_get_contents($this->path . '/codefilter.php-output.txt');
$result = $this
->filterText($input);
$this
->assertIdentical($expected, $result);
}