Code Duplication    Length = 10-10 lines in 2 locations

tests/TestCase.php 2 locations

@@ 87-96 (lines=10) @@
84
    /**
85
     * @param string|array $searchStrings
86
     */
87
    protected function seeInConsoleOutput($searchStrings)
88
    {
89
        if (! is_array($searchStrings)) {
90
            $searchStrings = [$searchStrings];
91
        }
92
        $output = $this->getArtisanOutput();
93
        foreach ($searchStrings as $searchString) {
94
            $this->assertContains((string) $searchString, $output);
95
        }
96
    }
97
98
    /**
99
     * @param string|array $searchStrings
@@ 101-110 (lines=10) @@
98
    /**
99
     * @param string|array $searchStrings
100
     */
101
    protected function dontSeeInConsoleOutput($searchStrings)
102
    {
103
        if (! is_array($searchStrings)) {
104
            $searchStrings = [$searchStrings];
105
        }
106
        $output = $this->getArtisanOutput();
107
        foreach ($searchStrings as $searchString) {
108
            $this->assertNotContains((string) $searchString, $output);
109
        }
110
    }
111
112
    protected function getArtisanOutput(): string
113
    {