Skip to content

Commit

Permalink
fixed incomplete test
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelHartmann authored and sebastianbergmann committed Sep 8, 2018
1 parent 5d61b04 commit 5a9fc54
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions tests/unit/Framework/MockObject/GeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,21 +233,13 @@ public function testVariadicArgumentsArePassedToOriginalMethod()
public function testVariadicArgumentsArePassedToMockedMethod()
{
/** @var ClassWithVariadicArgumentMethod|MockObject $mock */
$mock = $this->generator->getMock(
ClassWithVariadicArgumentMethod::class,
[],
[],
'',
true,
false,
true,
false,
false
);
$mock = $this->createMock(ClassWithVariadicArgumentMethod::class);

$arguments = [1, 'foo', false];
$mock->expects($this->once())
->method('foo')
->with(...$arguments);

$mock->foo(...$arguments);
}
}

0 comments on commit 5a9fc54

Please sign in to comment.