public static function CodeFilterTest::providerCode in Code Filter 8
Provides a string with php code.
Return value
string The php code as a string.
2 calls to CodeFilterTest::providerCode()
- CodeFilterTest::providerCodefilterProcessCode in src/
Tests/ CodeFilterTest.php - Data provider for testCodefilterProcessPHP().
- CodeFilterTest::providerCodefilterProcessPHP in src/
Tests/ CodeFilterTest.php - Data provider for testCodefilterProcessPHP().
File
- src/
Tests/ CodeFilterTest.php, line 75
Class
- CodeFilterTest
- Tests code filter functions.
Namespace
Drupal\codefilter\TestsCode
public static function providerCode() {
return <<<EOF
// Comment is here.
watchdog('actions', '@count orphaned actions (%orphans) exist in the actions table. !link', array('@count' => \$count, '%orphans' => \$orphans, '!link' => \$link), WATCHDOG_INFO);
/**
* Longer comment is here.
**/
EOF;
}