function RegistryParseFilesTestCase::getFileContents

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 136

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.