Skip to content

Commit ae39c2a

Browse files
Fix CS/WS issue
1 parent e5b3c30 commit ae39c2a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/unit/Framework/MockObject/Creation/MockBuilderTest.php

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

12-
use PHPUnit\TestFixture\MockObject\ClassCallingMethodInConstructor;
1312
use function assert;
1413
use function class_exists;
1514
use function interface_exists;
@@ -28,6 +27,7 @@
2827
use PHPUnit\Framework\MockObject\Generator\NameAlreadyInUseException;
2928
use PHPUnit\Framework\TestCase;
3029
use PHPUnit\TestFixture\MockObject\AbstractClass;
30+
use PHPUnit\TestFixture\MockObject\ClassCallingMethodInConstructor;
3131
use PHPUnit\TestFixture\MockObject\ExtendableClass;
3232
use PHPUnit\TestFixture\MockObject\InterfaceWithReturnTypeDeclaration;
3333
use PHPUnit\TestFixture\MockObject\TraitWithConcreteAndAbstractMethod;
@@ -170,11 +170,12 @@ public function testCreatesMockObjectForUnknownType(): void
170170
#[TestDox('onlyMethods() mocked methods can be called within the original constructor')]
171171
public function testOnlyMethodCalledInConstructorWorks(): void
172172
{
173-
$testClassMock = $this->getMockBuilder(ClassCallingMethodInConstructor::class)
173+
$double = $this->getMockBuilder(ClassCallingMethodInConstructor::class)
174174
->onlyMethods(['reset'])
175175
->getMock();
176176

177-
$testClassMock->expects($this::once())->method('reset');
178-
$testClassMock->second();
177+
$double->expects($this->once())->method('reset');
178+
179+
$double->second();
179180
}
180181
}

0 commit comments

Comments
 (0)