function sweaverEditor::_debugHelper in Sweaver 7
Same name and namespace in other branches
- 6 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.
 
Class
- sweaverEditor
 - @file Basic tests for sweaver frontend editor.
 
Code
function _debugHelper($value, $writetype = 'a+') {
  $debug = fopen($this->originalFileDirectory . '/simpletestdebug.txt', 'a+');
  fwrite($debug, print_r($value, TRUE) . "\n");
  fclose($debug);
}