@@ -122,15 +122,16 @@ public function testLoadExclude()
122
122
['c ' , null , null , self ::$ sampleXml ],
123
123
['d ' , null , null , self ::$ sampleXml ],
124
124
]));
125
+ $ this ->registry ->expects ($ this ->once ())
126
+ ->method ('getModulePaths ' )
127
+ ->willReturn ([]);
125
128
$ this ->converter ->expects ($ this ->at (0 ))->method ('convert ' )->willReturn (['a ' => $ fixture ['a ' ]]);
126
129
$ this ->converter ->expects ($ this ->at (1 ))->method ('convert ' )->willReturn (['b ' => $ fixture ['b ' ]]);
127
130
$ this ->converter ->expects ($ this ->at (2 ))->method ('convert ' )->willReturn (['c ' => $ fixture ['c ' ]]);
128
131
$ this ->converter ->expects ($ this ->at (3 ))->method ('convert ' )->willReturn (['d ' => $ fixture ['d ' ]]);
129
- $ this ->parser ->expects ($ this ->once ())->method ('initErrorHandler ' );
130
132
$ this ->parser ->expects ($ this ->atLeastOnce ())->method ('loadXML ' );
131
133
$ this ->parser ->expects ($ this ->atLeastOnce ())->method ('getDom ' );
132
- $ object = new Loader ($ this ->filesystem , $ this ->converter , $ this ->parser );
133
- $ result = $ object ->load (['d ' ]);
134
+ $ result = $ this ->loader ->load (['d ' ]);
134
135
$ this ->assertSame (['a ' , 'c ' , 'b ' ], array_keys ($ result ));
135
136
$ this ->assertSame ($ fixture ['a ' ], $ result ['a ' ]);
136
137
$ this ->assertSame ($ fixture ['b ' ], $ result ['b ' ]);
0 commit comments