Code Duplication    Length = 3-3 lines in 2 locations

src/Drupal/DrupalExtension/Context/DrushContext.php 2 locations

@@ 61-63 (lines=3) @@
58
   * @Then drush output should contain :output
59
   */
60
  public function assertDrushOutput($output) {
61
    if (strpos((string) $this->readDrushOutput(), $this->fixStepArgument($output)) === FALSE) {
62
      throw new \Exception(sprintf("The last drush command output did not contain '%s'.\nInstead, it was:\n\n%s'", $output, $this->drushOutput));
63
    }
64
  }
65
66
  /**
@@ 70-72 (lines=3) @@
67
   * @Then drush output should not contain :output
68
   */
69
  public function drushOutputShouldNotContain($output) {
70
    if (strpos((string) $this->readDrushOutput(), $this->fixStepArgument($output)) !== FALSE) {
71
        throw new \Exception(sprintf("The last drush command output did contain '%s' although it should not.\nOutput:\n\n%s'", $output, $this->drushOutput));
72
    }
73
  }
74
75
  /**