Skip to content

Commit d3cbdb1

Browse files
committed
Fix tests
1 parent 5392a85 commit d3cbdb1

File tree

4 files changed

+4
-18
lines changed

4 files changed

+4
-18
lines changed

src/Assertion.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static function withConsecutive(array $arguments, mixed $responses = null
3434
}
3535

3636
if (!is_array($responses)) {
37-
$responses = array_map(static fn() => $responses, $arguments);
37+
$responses = array_map(static fn () => $responses, $arguments);
3838
}
3939

4040
$indexes = count($arguments) > 0 ? range(0, count($arguments) - 1) : [];

src/Extension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ protected static function withConsecutive(array $arguments, mixed $responses = n
1919
/**
2020
* @param list<\PHPUnit\Framework\MockObject\MockObject> $mocks
2121
*/
22-
protected static function neverExpect(array $mocks): void
22+
protected function neverExpect(array $mocks): void
2323
{
2424
foreach ($mocks as $mock) {
25-
$mock->expects(self::never())->method(self::anything());
25+
$mock->expects($this->never())->method(self::anything());
2626
}
2727
}
2828
}

tests/BaseWithConsecutiveTestCase.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -273,20 +273,6 @@ public function testVariadicConstraint(): void
273273
$this->mock->variadic('4.1-4.2-3.3');
274274
}
275275

276-
public function testVariadicAdditionalCalls(): void
277-
{
278-
$this->mock
279-
->expects(self::exactly(3))
280-
->method('variadic')
281-
->will(static::assert([
282-
['1.1', '1.2', '1.3'],
283-
]));
284-
285-
$this->mock->variadic('1.1', '1.2', '1.3');
286-
$this->mock->variadic('2.1', '2.2', '2.3');
287-
$this->mock->variadic('3.1', '3.2', '3.3');
288-
}
289-
290276
public function testVariadicFailMatch(): void
291277
{
292278
self::expectException(ExpectationFailedException::class);

tests/NeverExpectTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ protected function setUp(): void
2727

2828
public function testNeverExpect(): void
2929
{
30-
self::neverExpect([
30+
$this->neverExpect([
3131
$this->mock1,
3232
$this->mock2,
3333
$this->mock3,

0 commit comments

Comments
 (0)