Skip to content

Commit 8c6d690

Browse files
Do not expose InvocationStubberImplementation
1 parent fb4df53 commit 8c6d690

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/Framework/MockObject/Runtime/Api/Method.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ trait Method
2222
{
2323
abstract public function __phpunit_getInvocationHandler(): InvocationHandler;
2424

25-
public function method(Constraint|PropertyHook|string $constraint): InvocationStubberImplementation
25+
public function method(Constraint|PropertyHook|string $constraint): InvocationStubber
2626
{
2727
return $this
2828
->__phpunit_getInvocationHandler()

src/Framework/MockObject/Runtime/Api/MockObjectApi.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010
namespace PHPUnit\Framework\MockObject;
1111

12-
use PHPUnit\Framework\MockObject\InvocationStubberImplementation as InvocationMockerBuilder;
1312
use PHPUnit\Framework\MockObject\Rule\InvocationOrder;
1413

1514
/**
@@ -41,7 +40,7 @@ abstract public function __phpunit_getInvocationHandler(): InvocationHandler;
4140

4241
abstract public function __phpunit_unsetInvocationMocker(): void;
4342

44-
public function expects(InvocationOrder $matcher): InvocationMockerBuilder
43+
public function expects(InvocationOrder $matcher): InvocationStubber
4544
{
4645
return $this->__phpunit_getInvocationHandler()->expects($matcher);
4746
}

src/Framework/MockObject/Runtime/InvocationHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function registerMatcher(string $id, Matcher $matcher): void
8080
$this->matcherMap[$id] = $matcher;
8181
}
8282

83-
public function expects(InvocationOrder $rule): InvocationStubberImplementation
83+
public function expects(InvocationOrder $rule): InvocationStubber
8484
{
8585
$matcher = new Matcher($rule);
8686
$this->addMatcher($matcher);

0 commit comments

Comments
 (0)