You are here

protected function HeartbeatWebTestCase::debugHelper in Heartbeat 6.4

Debug helper function. Writes values away to a text file in the files directory.

File

tests/heartbeatwebtestcase.inc, line 32

Class

HeartbeatWebTestCase
Class HeartbeatAdminTools

Code

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