Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ final class SomeTest extends \PHPUnit\Framework\TestCase
public function test()
{
$someMock = $this->createMock(\stdClass::class);
$someMock->expects($this->exactly(2))->method('some')->willReturnMap([1, 2]);
$someMock->expects($this->atLeast(2))->method('some')->willReturnMap([1, 2]);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function setUp(): void
{
$this->someMock = $this->createMock(SomeClass::class);

$this->someMock->expects($this->exactly(2))
$this->someMock->expects($this->atLeast(2))
->method("someMethod")
->willReturnMap([
["arg1", "arg2", "result1"],
Expand Down Expand Up @@ -166,7 +166,7 @@ private function refactorExpression(Expression $expression): bool
new Identifier('expects'),
[new Arg(new MethodCall(
new Variable('this'),
new Identifier('exactly'),
new Identifier('atLeast'),
[new Arg(new Int_($mapCount))]
))]
);
Expand Down
Loading