You are here

function NodeDisplaysBuildModes::_debugHelper in Node displays 6

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

File

tests/nd.buildmodes.test, line 30
Tests for Node displays (Build modes)

Class

NodeDisplaysBuildModes
@file Tests for Node displays (Build modes)

Code

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