function RegistryParseFilesTestCase::getFileContents in Drupal 7
getFileContents
1 call to RegistryParseFilesTestCase::getFileContents()
- RegistryParseFilesTestCase::setUp in modules/
simpletest/ tests/ registry.test - Sets up a Drupal site for running functional and integration tests.
File
- modules/
simpletest/ tests/ registry.test, line 130
Class
Code
function getFileContents($fileType) {
$file_contents = <<<CONTENTS
<?php
class {<span class="php-variable">$this</span>-><span class="php-function-or-constant property member-of-self">{<span class="php-variable">$fileType</span>}</span>-><span class="php-function-or-constant property member-of-variable">className</span>} {}
interface {<span class="php-variable">$this</span>-><span class="php-function-or-constant property member-of-self">{<span class="php-variable">$fileType</span>}</span>-><span class="php-function-or-constant property member-of-variable">interfaceName</span>} {}
CONTENTS;
return $file_contents;
}