Skip to content

Commit 819be58

Browse files
Rename class
1 parent 8475044 commit 819be58

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/_files/mock-object/ClassCallingMethodInConstructor.php renamed to tests/_files/mock-object/ExtendableClassCallingMethodInConstructor.php

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

12-
class ClassCallingMethodInConstructor
12+
class ExtendableClassCallingMethodInConstructor
1313
{
1414
public function __construct()
1515
{

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
use PHPUnit\Framework\MockObject\Generator\NameAlreadyInUseException;
2828
use PHPUnit\Framework\TestCase;
2929
use PHPUnit\TestFixture\MockObject\AbstractClass;
30-
use PHPUnit\TestFixture\MockObject\ClassCallingMethodInConstructor;
30+
use PHPUnit\TestFixture\MockObject\ExtendableClassCallingMethodInConstructor;
3131
use PHPUnit\TestFixture\MockObject\ExtendableClass;
3232
use PHPUnit\TestFixture\MockObject\InterfaceWithReturnTypeDeclaration;
3333
use PHPUnit\TestFixture\MockObject\TraitWithConcreteAndAbstractMethod;
@@ -170,7 +170,7 @@ public function testCreatesMockObjectForUnknownType(): void
170170
#[TestDox('Mocked methods can be called from the original constructor of a partially mocked class')]
171171
public function testOnlyMethodCalledInConstructorWorks(): void
172172
{
173-
$double = $this->getMockBuilder(ClassCallingMethodInConstructor::class)
173+
$double = $this->getMockBuilder(ExtendableClassCallingMethodInConstructor::class)
174174
->onlyMethods(['reset'])
175175
->getMock();
176176

0 commit comments

Comments
 (0)