Skip to content

Commit

Permalink
Fix invalid unit test return value argument count
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdekker committed Sep 7, 2024
1 parent 58f20bc commit 3c61dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Unit/Service/CodeReview/DiffFinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function testFindLinesAround(): void
$file->filePathAfter = '/path/to/file/foobar.txt';
$file->addBlock($block);

$this->referenceMatcher->method('exactMatch')->willReturn($lineA, $lineB, $lineB);
$this->referenceMatcher->expects(self::exactly(4))->method('exactMatch')->willReturn($lineA, $lineB, $lineB, null);

// match line 100 => expect before: 100, after: 101
static::assertSame(
Expand Down

0 comments on commit 3c61dcf

Please sign in to comment.