Skip to content

Commit 71adeef

Browse files
Symfony 8 support
1 parent 39cb8ed commit 71adeef

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

tests/Subscriber/Application/ApplicationFinishedSubscriberTest.php

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ public function testNotifyWithAtLeastOneFailedRule(): void
7575
0
7676
));
7777

78-
$this->assertStringContainsString('Not all minimum code coverage rules passed, please try again... :)', $this->output);
78+
$this->assertStringContainsString('Not all minimum code coverage rules', $this->output);
79+
$this->assertStringContainsString('passed, please try again... :)', $this->output);
7980
}
8081

8182
public function testNotifyWithAWarning(): void
@@ -109,7 +110,9 @@ public function testNotifyWithAWarning(): void
109110
0
110111
));
111112

112-
$this->assertStringContainsString('There was at least one pattern that did not match any covered classes. Please consider removing them', $this->output);
113+
$this->assertStringContainsString('There was at least one pattern that', $this->output);
114+
$this->assertStringContainsString('did not match any covered classes.', $this->output);
115+
$this->assertStringContainsString('Please consider removing them', $this->output);
113116
}
114117

115118
public function testNotifyWhenCoverageIsOk(): void
@@ -143,7 +146,8 @@ public function testNotifyWhenCoverageIsOk(): void
143146
0
144147
));
145148

146-
$this->assertStringContainsString('All minimum code coverage rules passed, give yourself a pat on the back!', $this->output);
149+
$this->assertStringContainsString('All minimum code coverage rules', $this->output);
150+
$this->assertStringContainsString('passed, give yourself a pat on the', $this->output);
147151
}
148152

149153
public function testNotifyWithOnlyTotal(): void
@@ -178,7 +182,8 @@ public function testNotifyWithOnlyTotal(): void
178182
));
179183

180184
$this->assertStringContainsString('Total', $this->output);
181-
$this->assertStringContainsString('All minimum code coverage rules passed, give yourself a pat on the back!', $this->output);
185+
$this->assertStringContainsString('All minimum code coverage rules', $this->output);
186+
$this->assertStringContainsString('passed, give yourself a pat on the', $this->output);
182187
}
183188

184189
public function testNotifyWithoutTotal(): void
@@ -213,7 +218,8 @@ public function testNotifyWithoutTotal(): void
213218
));
214219

215220
$this->assertStringNotContainsString('Total', $this->output);
216-
$this->assertStringContainsString('All minimum code coverage rules passed, give yourself a pat on the back!', $this->output);
221+
$this->assertStringContainsString('All minimum code coverage rules', $this->output);
222+
$this->assertStringContainsString('passed, give yourself a pat on the', $this->output);
217223
}
218224

219225
public function testNotifyWithRulesThatDoNotExit(): void
@@ -248,7 +254,8 @@ public function testNotifyWithRulesThatDoNotExit(): void
248254
));
249255

250256
$this->assertStringContainsString('No', $this->output);
251-
$this->assertStringContainsString('Not all minimum code coverage rules passed, please try again... :)', $this->output);
257+
$this->assertStringContainsString('Not all minimum code coverage rules', $this->output);
258+
$this->assertStringContainsString('passed, please try again... :)', $this->output);
252259
}
253260

254261
public function testDivideByZero(): void
@@ -282,7 +289,9 @@ public function testDivideByZero(): void
282289
0
283290
));
284291

285-
$this->assertStringContainsString('There was at least one pattern that did not match any covered classes. Please consider removing them', $this->output);
292+
$this->assertStringContainsString('There was at least one pattern that', $this->output);
293+
$this->assertStringContainsString('did not match any covered classes.', $this->output);
294+
$this->assertStringContainsString('Please consider removing them', $this->output);
286295
}
287296

288297
public function testNotifyWhenNoTrackedLines(): void
@@ -316,7 +325,9 @@ public function testNotifyWhenNoTrackedLines(): void
316325
0
317326
));
318327

319-
$this->assertStringContainsString('There was at least one pattern that did not match any covered classes. Please consider removing them', $this->output);
328+
$this->assertStringContainsString('There was at least one pattern that', $this->output);
329+
$this->assertStringContainsString('did not match any covered classes.', $this->output);
330+
$this->assertStringContainsString('Please consider removing them', $this->output);
320331
}
321332

322333
public function testNotifyWithNonExistingCloverFile(): void

0 commit comments

Comments
 (0)