function sweaverEditor::_debugHelper in Sweaver 6
Same name and namespace in other branches
- 7 tests/sweaver.editor.test \sweaverEditor::_debugHelper()
Debug helper function. Writes values away to a text file in the files directory.
File
- tests/
sweaver.editor.test, line 32 - Basic tests for sweaver frontend editor. Note: run this patch on D6 to allow posts to hidden fields: http://drupal.org/node/488810#comment-1693662.
Class
- sweaverEditor
- @file Basic tests for sweaver frontend editor. 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);
}