You are here

function RegistryParseFilesTestCase::getFileContents in SimpleTest 7

getFileContents

1 call to RegistryParseFilesTestCase::getFileContents()
RegistryParseFilesTestCase::setUp in tests/registry.test
Generates a random database prefix, runs the install scripts on the prefixed database and enable the specified modules. After installation many caches are flushed and the internal browser is setup so that the page requests will run on the new prefix.…

File

tests/registry.test, line 129

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;
}