diff --git a/src/Recorders/DumpRecorder/HtmlDumper.php b/src/Recorders/DumpRecorder/HtmlDumper.php
index 70af4289..ebf18396 100644
--- a/src/Recorders/DumpRecorder/HtmlDumper.php
+++ b/src/Recorders/DumpRecorder/HtmlDumper.php
@@ -8,7 +8,12 @@
class HtmlDumper extends BaseHtmlDumper
{
- protected $dumpHeader = '';
+ public function __construct($output = null, string $charset = null, int $flags = 0)
+ {
+ parent::__construct($output, $charset, $flags);
+
+ $this->setDumpHeader('');
+ }
public function dumpVariable($variable): string
{
diff --git a/tests/Recorders/DumpRecorder/HtmlDumperTest.php b/tests/Recorders/DumpRecorder/HtmlDumperTest.php
new file mode 100644
index 00000000..2353cd5f
--- /dev/null
+++ b/tests/Recorders/DumpRecorder/HtmlDumperTest.php
@@ -0,0 +1,9 @@
+ $this->getDumpHeader())->call(new HtmlDumper);
+
+ expect($dumpHeader)->toBe('');
+});