Browse Source

Fix format changing mid test.

Mark Story 6 years ago
parent
commit
589f6cc029
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tests/TestCase/Error/DebuggerTest.php

+ 3 - 0
tests/TestCase/Error/DebuggerTest.php

@@ -578,6 +578,8 @@ TEXT;
     public function testGetInstance()
     {
         $result = Debugger::getInstance();
+        $exporter = $result->getConfig('exportFormatter');
+
         $this->assertInstanceOf(Debugger::class, $result);
 
         $result = Debugger::getInstance(TestDebugger::class);
@@ -588,6 +590,7 @@ TEXT;
 
         $result = Debugger::getInstance(Debugger::class);
         $this->assertInstanceOf(Debugger::class, $result);
+        $result->setConfig('exportFormatter', $exporter);
     }
 
     /**