You are here

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

RegistryParseFilesTestCase

Code

function getFileContents($fileType) {
  $file_contents = <<<CONTENTS
<?php

class {<span class="php-variable">$this</span>-&gt;<span class="php-function-or-constant property member-of-self">{<span class="php-variable">$fileType</span>}</span>-&gt;<span class="php-function-or-constant property member-of-variable">className</span>} {}

interface {<span class="php-variable">$this</span>-&gt;<span class="php-function-or-constant property member-of-self">{<span class="php-variable">$fileType</span>}</span>-&gt;<span class="php-function-or-constant property member-of-variable">interfaceName</span>} {}

CONTENTS;
  return $file_contents;
}