function RegistryParseFileTestCase::testRegistryParseFile in SimpleTest 7
testRegistryParseFile
File
- tests/
registry.test, line 22
Class
Code
function testRegistryParseFile() {
_registry_parse_file($this->fileName, $this
->getFileContents());
foreach (array(
'className',
'interfaceName',
) as $resource) {
$foundName = db_query('SELECT name FROM {registry} WHERE name = :name', array(
':name' => $this->{$resource},
))
->fetchField();
$this
->assertTrue($this->{$resource} == $foundName, t('Resource "@resource" found.', array(
'@resource' => $this->{$resource},
)));
}
}