protected function reportFailure($fileName, $fileLine, $data)
    {
        switch ($this->_log) {
            case self::LOG_TO_FILE:
                file_put_contents(
                    $this->_logLocation,
                    $data . ' - in ' . $fileName . ' (line ' . $fileLine . ')',
                    FILE_APPEND
                );
                break;
            case self::LOG_TO_FIREPHP:
                require_once 'FirePHPCore/FirePHP.class.php';
                $firephp = FirePHP::getInstance(true);
                $firephp->warn($fileName . ' (line ' . $fileLine . ')', $data);
                break;
            case self::LOG_TO_PHPUNIT;
                $this->_failures[] = array(
                    'fileName' => $fileName,
                    'fileLine' => $fileLine,
                    'data' => $data
                );
                break;
        }
    }