File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ class FilesLoaderTest extends TestCase
20
20
{
21
21
public function testCallsGetFileLoaderInstanceForeachPath ()
22
22
{
23
- $ loader = $ this ->getFilesLoader ($ this ->getFileLoader ( ));
23
+ $ loader = $ this ->getFilesLoader ($ this ->createMock (LoaderInterface::class ));
24
24
$ this ->assertEquals (4 , $ loader ->getTimesCalled ());
25
25
}
26
26
27
27
public function testCallsActualFileLoaderForMetadata ()
28
28
{
29
- $ fileLoader = $ this ->getFileLoader ( );
29
+ $ fileLoader = $ this ->createMock (LoaderInterface::class );
30
30
$ fileLoader ->expects ($ this ->exactly (4 ))
31
31
->method ('loadClassMetadata ' );
32
32
$ loader = $ this ->getFilesLoader ($ fileLoader );
@@ -42,9 +42,4 @@ public function getFilesLoader(LoaderInterface $loader)
42
42
__DIR__ .'/constraint-mapping.txt ' ,
43
43
], $ loader ]);
44
44
}
45
-
46
- public function getFileLoader ()
47
- {
48
- return $ this ->createMock (LoaderInterface::class);
49
- }
50
45
}
You can’t perform that action at this time.
0 commit comments