File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public function testEmptyStringIsValid()
45
45
public function testExpectsUuidConstraintCompatibleType ()
46
46
{
47
47
$ this ->expectException (UnexpectedTypeException::class);
48
- $ constraint = $ this ->getMockForAbstractClass (Constraint::class);
48
+ $ constraint = $ this ->createStub (Constraint::class);
49
49
50
50
$ this ->validator ->validate ('216fff40-98d9-11e3-a5e2-0800200c9a66 ' , $ constraint );
51
51
}
Original file line number Diff line number Diff line change @@ -36,11 +36,11 @@ public function testCallsActualFileLoaderForMetadata()
36
36
37
37
public function getFilesLoader (LoaderInterface $ loader )
38
38
{
39
- return $ this -> getMockForAbstractClass (FilesLoader::class, [ [
39
+ return new class ( [
40
40
__DIR__ .'/constraint-mapping.xml ' ,
41
41
__DIR__ .'/constraint-mapping.yaml ' ,
42
42
__DIR__ .'/constraint-mapping.test ' ,
43
43
__DIR__ .'/constraint-mapping.txt ' ,
44
- ], $ loader]) ;
44
+ ], $ loader) extends FilesLoader {} ;
45
45
}
46
46
}
You can’t perform that action at this time.
0 commit comments