Code Duplication    Length = 11-11 lines in 2 locations

src/Paraunit/Parser/JSON/LogPrinter.php 1 location

@@ 204-214 (lines=11) @@
201
            $this->currentTestName = '';
202
        }
203
    
204
        public function startTest(Test $test): void
205
        {
206
            $this->currentTestName = $test instanceof SelfDescribing ? $test->toString() : \get_class($test);
207
            $this->currentTestPass = true;
208
    
209
            $this->writeArray([
210
                'event' => 'testStart',
211
                'suite' => $this->currentTestSuiteName,
212
                'test' => $this->currentTestName,
213
            ]);
214
        }
215
    
216
        /**
217
         * A test ended.

src/Paraunit/Parser/JSON/LogPrinterV6.php 1 location

@@ 197-207 (lines=11) @@
194
        $this->currentTestName = '';
195
    }
196
197
    public function startTest(Test $test)
198
    {
199
        $this->currentTestName = $test instanceof SelfDescribing ? $test->toString() : \get_class($test);
200
        $this->currentTestPass = true;
201
202
        $this->writeArray([
203
            'event' => 'testStart',
204
            'suite' => $this->currentTestSuiteName,
205
            'test' => $this->currentTestName,
206
        ]);
207
    }
208
209
    /**
210
     * A test ended.