public static function CodeFilterTest::providerCodefilterProcessPHP in Code Filter 8
Data provider for testCodefilterProcessPHP().
File
- src/
Tests/ CodeFilterTest.php, line 48
Class
- CodeFilterTest
- Tests code filter functions.
Namespace
Drupal\codefilter\TestsCode
public static function providerCodefilterProcessPHP() {
return [
[
self::providerCode(),
'<div class="codeblock"><code><span style="color: #000000"><span style="color: #0000BB"><?php<br /></span><span style="color: #FF8000">// Comment is here.<br /></span><span style="color: #0000BB">watchdog</span><span style="color: #007700">(</span><span style="color: #DD0000">\'actions\'</span><span style="color: #007700">, </span><span style="color: #DD0000">\'@count orphaned actions (%orphans) exist in the actions table. !link\'</span><span style="color: #007700">, array(</span><span style="color: #DD0000">\'@count\' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$count</span><span style="color: #007700">, </span><span style="color: #DD0000">\'%orphans\' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$orphans</span><span style="color: #007700">, </span><span style="color: #DD0000">\'!link\' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$link</span><span style="color: #007700">), </span><span style="color: #0000BB">WATCHDOG_INFO</span><span style="color: #007700">);<br /></span><span style="color: #FF8000">/**<br /> * Longer comment is here.<br /> **/<br /></span><span style="color: #0000BB">?></span></span></code></div>',
],
];
}