You are here

public function CodeFilterTest::testCodefilterProcessPHP in Code Filter 8

Test codefilter_process_php().

@dataProvider providerCodefilterProcessPHP

File

src/Tests/CodeFilterTest.php, line 30

Class

CodeFilterTest
Tests code filter functions.

Namespace

Drupal\codefilter\Tests

Code

public function testCodefilterProcessPHP($input, $expected) {
  $result = CodeFilter::processPHP($input);
  $this
    ->assertEquals($expected, $result);
}