| 7 common.test | ParseInfoFilesTestCase::testParseInfoFile() |
Parse an example .info file an verify the results.
File
- modules/
simpletest/ tests/ common.test, line 2189 - Tests for common.inc functionality.
Code
function testParseInfoFile() {
$info_values = drupal_parse_info_file(drupal_get_path('module', 'simpletest') . '/tests/common_test_info.txt');
$this->assertEqual($info_values['simple_string'], 'A simple string', t('Simple string value was parsed correctly.'), t('System'));
$this->assertEqual($info_values['simple_constant'], WATCHDOG_INFO, t('Constant value was parsed correctly.'), t('System'));
$this->assertEqual($info_values['double_colon'], 'dummyClassName::', t('Value containing double-colon was parsed correctly.'), t('System'));
}
Login or register to post comments