Skip to content

Commit 5890dea

Browse files
Remove calls to getMockForAbstractClass()
1 parent 146b59f commit 5890dea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tests/Constraints/UuidValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function testEmptyStringIsValid()
4545
public function testExpectsUuidConstraintCompatibleType()
4646
{
4747
$this->expectException(UnexpectedTypeException::class);
48-
$constraint = $this->getMockForAbstractClass(Constraint::class);
48+
$constraint = $this->createStub(Constraint::class);
4949

5050
$this->validator->validate('216fff40-98d9-11e3-a5e2-0800200c9a66', $constraint);
5151
}

Tests/Mapping/Loader/FilesLoaderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ public function testCallsActualFileLoaderForMetadata()
3636

3737
public function getFilesLoader(LoaderInterface $loader)
3838
{
39-
return $this->getMockForAbstractClass(FilesLoader::class, [[
39+
return new class([
4040
__DIR__.'/constraint-mapping.xml',
4141
__DIR__.'/constraint-mapping.yaml',
4242
__DIR__.'/constraint-mapping.test',
4343
__DIR__.'/constraint-mapping.txt',
44-
], $loader]);
44+
], $loader) extends FilesLoader {};
4545
}
4646
}

0 commit comments

Comments
 (0)