Code Duplication    Length = 10-10 lines in 2 locations

tests/Behat/Context/TestContext.php 2 locations

@@ 290-299 (lines=10) @@
287
    /**
288
     * @Then /^it should pass$/
289
     */
290
    public function itShouldPass(): void
291
    {
292
        if (0 === $this->getProcessExitCode()) {
293
            return;
294
        }
295
296
        throw new \DomainException(
297
            'Behat was expecting to pass, but failed with the following output:' . \PHP_EOL . \PHP_EOL . $this->getProcessOutput()
298
        );
299
    }
300
301
    /**
302
     * @Then /^it should pass with(?: "([^"]+)"|:)$/
@@ 313-322 (lines=10) @@
310
    /**
311
     * @Then /^it should fail$/
312
     */
313
    public function itShouldFail(): void
314
    {
315
        if (0 !== $this->getProcessExitCode()) {
316
            return;
317
        }
318
319
        throw new \DomainException(
320
            'Behat was expecting to fail, but passed with the following output:' . \PHP_EOL . \PHP_EOL . $this->getProcessOutput()
321
        );
322
    }
323
324
    /**
325
     * @Then /^it should fail with(?: "([^"]+)"|:)$/