function sweaverAdministration::_debugHelper in Sweaver 6
Same name and namespace in other branches
- 7 tests/sweaver.admin.test \sweaverAdministration::_debugHelper()
Debug helper function. Writes values away to a text file in the files directory.
File
- tests/
sweaver.admin.test, line 58 - Tests for sweaver backend Note: run this patch on D6 to allow posts to hidden fields: http://drupal.org/node/488810#comment-1693662.
Class
- sweaverAdministration
- @file Tests for sweaver backend Note: run this patch on D6 to allow posts to hidden fields: http://drupal.org/node/488810#comment-1693662.
Code
function _debugHelper($value, $writetype = 'a+') {
$debug = fopen($this->originalFileDirectory . '/simpletestdebug.txt', 'a+');
fwrite($debug, print_r($value, TRUE) . "\n");
fclose($debug);
}