You are here

function sweaverAdministration::_debugHelper in Sweaver 7

Same name and namespace in other branches
  1. 6 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 37
Tests for sweaver backend

Class

sweaverAdministration
@file Tests for sweaver backend

Code

function _debugHelper($value, $writetype = 'a+') {
  $debug = fopen($this->originalFileDirectory . '/simpletestdebug.txt', 'a+');
  fwrite($debug, print_r($value, TRUE) . "\n");
  fclose($debug);
}