Skip to content

Commit 39cb8ed

Browse files
Symfony 8 support
1 parent 3ff3c29 commit 39cb8ed

9 files changed

+11
-96
lines changed

tests/Subscriber/Application/ApplicationFinishedSubscriberTest.php

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

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

8181
public function testNotifyWithAWarning(): void
@@ -109,7 +109,7 @@ public function testNotifyWithAWarning(): void
109109
0
110110
));
111111

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

115115
public function testNotifyWhenCoverageIsOk(): void
@@ -143,7 +143,7 @@ public function testNotifyWhenCoverageIsOk(): void
143143
0
144144
));
145145

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

149149
public function testNotifyWithOnlyTotal(): void
@@ -177,7 +177,8 @@ public function testNotifyWithOnlyTotal(): void
177177
0
178178
));
179179

180-
$this->assertMatchesTextSnapshot($this->output);
180+
$this->assertStringContainsString('Total', $this->output);
181+
$this->assertStringContainsString('All minimum code coverage rules passed, give yourself a pat on the back!', $this->output);
181182
}
182183

183184
public function testNotifyWithoutTotal(): void
@@ -211,7 +212,8 @@ public function testNotifyWithoutTotal(): void
211212
0
212213
));
213214

214-
$this->assertMatchesTextSnapshot($this->output);
215+
$this->assertStringNotContainsString('Total', $this->output);
216+
$this->assertStringContainsString('All minimum code coverage rules passed, give yourself a pat on the back!', $this->output);
215217
}
216218

217219
public function testNotifyWithRulesThatDoNotExit(): void
@@ -245,7 +247,8 @@ public function testNotifyWithRulesThatDoNotExit(): void
245247
0
246248
));
247249

248-
$this->assertMatchesTextSnapshot($this->output);
250+
$this->assertStringContainsString('No', $this->output);
251+
$this->assertStringContainsString('Not all minimum code coverage rules passed, please try again... :)', $this->output);
249252
}
250253

251254
public function testDivideByZero(): void
@@ -279,7 +282,7 @@ public function testDivideByZero(): void
279282
0
280283
));
281284

282-
$this->assertMatchesTextSnapshot($this->output);
285+
$this->assertStringContainsString('There was at least one pattern that did not match any covered classes. Please consider removing them', $this->output);
283286
}
284287

285288
public function testNotifyWhenNoTrackedLines(): void
@@ -313,7 +316,7 @@ public function testNotifyWhenNoTrackedLines(): void
313316
0
314317
));
315318

316-
$this->assertMatchesTextSnapshot($this->output);
319+
$this->assertStringContainsString('There was at least one pattern that did not match any covered classes. Please consider removing them', $this->output);
317320
}
318321

319322
public function testNotifyWithNonExistingCloverFile(): void

tests/Subscriber/Application/__snapshots__/ApplicationFinishedSubscriberTest__testDivideByZero__1.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/Subscriber/Application/__snapshots__/ApplicationFinishedSubscriberTest__testNotifyWhenCoverageIsOk__1.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

tests/Subscriber/Application/__snapshots__/ApplicationFinishedSubscriberTest__testNotifyWhenNoTrackedLines__1.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/Subscriber/Application/__snapshots__/ApplicationFinishedSubscriberTest__testNotifyWithAWarning__1.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

tests/Subscriber/Application/__snapshots__/ApplicationFinishedSubscriberTest__testNotifyWithAtLeastOneFailedRule__1.txt

Lines changed: 0 additions & 13 deletions
This file was deleted.

tests/Subscriber/Application/__snapshots__/ApplicationFinishedSubscriberTest__testNotifyWithOnlyTotal__1.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/Subscriber/Application/__snapshots__/ApplicationFinishedSubscriberTest__testNotifyWithRulesThatDoNotExit__1.txt

Lines changed: 0 additions & 13 deletions
This file was deleted.

tests/Subscriber/Application/__snapshots__/ApplicationFinishedSubscriberTest__testNotifyWithoutTotal__1.txt

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)