Skip to content

Commit b12501f

Browse files
committed
Fix tests
1 parent 7e0ff47 commit b12501f

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

tests/KeywordEnhancerTest.php

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,13 @@ public static function dataLinksToBugsPhp(): array {
3737
'Fixed bug #5943: OOB read due to',
3838
'Fixed bug #5943: OOB read due to',
3939
],
40+
[
41+
'Fixed bug [GH-11453](https://github.com/php/php-src/issues/11453): OOB read due to',
42+
'Fixed bug [GH-11453](https://github.com/php/php-src/issues/11453): OOB read due to',
43+
],
4044
[
4145
'Fixed bug #11453: OOB read due to',
42-
'Fixed bug #11453: OOB read due to',
46+
'Fixed bug [GH-11453](https://github.com/php/php-src/issues/11453): OOB read due to',
4347
],
4448
[
4549
'Fixed bug #123456: OOB read due to',
@@ -74,7 +78,7 @@ public static function dataCodifyText(): array {
7478
}
7579

7680
/**
77-
* @covers \PHPWatch\PhpKeywordEnhancer\KeywordEnhancer::enhance
81+
* @covers \PHPWatch\PHPCommitBuilder\KeywordEnhancer::enhance
7882
*/
7983
public function testReturnsVerbatimOnEmptyStrings(): void {
8084
self::assertSame('', KeywordEnhancer::enhance(''));
@@ -83,31 +87,35 @@ public function testReturnsVerbatimOnEmptyStrings(): void {
8387
}
8488

8589
/**
86-
* @covers \PHPWatch\PhpKeywordEnhancer\KeywordEnhancer::linkToBug
90+
* @covers \PHPWatch\PHPCommitBuilder\KeywordEnhancer::linkToBug
91+
* @covers \PHPWatch\PHPCommitBuilder\KeywordEnhancer::enhance
8792
* @dataProvider dataLinksToBugsPhp
8893
*/
8994
public function testLinksToBugsPhp(string $input, string $expected): void {
9095
self::assertSame($expected, KeywordEnhancer::enhance($input));
9196
}
9297

9398
/**
94-
* @covers \PHPWatch\PhpKeywordEnhancer\KeywordEnhancer::linkToGitHub
99+
* @covers \PHPWatch\PHPCommitBuilder\KeywordEnhancer::linkToGitHub
100+
* @covers \PHPWatch\PHPCommitBuilder\KeywordEnhancer::enhance
95101
* @dataProvider dataLinkToGitHub
96102
*/
97103
public function testLinkToGitHub(string $input, string $expected): void {
98104
self::assertSame($expected, KeywordEnhancer::enhance($input));
99105
}
100106

101107
/**
102-
* @covers \PHPWatch\PhpKeywordEnhancer\KeywordEnhancer::linkToSecurityAnnouncements
108+
* @covers \PHPWatch\PHPCommitBuilder\KeywordEnhancer::linkToSecurityAnnouncements
109+
* @covers \PHPWatch\PHPCommitBuilder\KeywordEnhancer::enhance
103110
* @dataProvider dataLinkToSecurityAnnouncements
104111
*/
105112
public function testLinkToSecurityAnnouncements(string $input, string $expected): void {
106113
self::assertSame($expected, KeywordEnhancer::enhance($input));
107114
}
108115

109116
/**
110-
* @covers \PHPWatch\PhpKeywordEnhancer\KeywordEnhancer::codifyText
117+
* @covers \PHPWatch\PHPCommitBuilder\KeywordEnhancer::codifyText
118+
* @covers \PHPWatch\PHPCommitBuilder\KeywordEnhancer::enhance
111119
* @dataProvider dataCodifyText
112120
*/
113121
public function testCodifyText(string $input, string $expected): void {

0 commit comments

Comments
 (0)