@@ -54,16 +54,16 @@ protected function setUp()
54
54
* @dataProvider createDataProvider
55
55
*/
56
56
public function testCreate (
57
+ array $ objectManagerArguments ,
57
58
array $ config ,
58
59
LoggerInterface $ logger = null ,
59
- SelectFactory $ selectFactory = null ,
60
- array $ arguments
60
+ SelectFactory $ selectFactory = null
61
61
) {
62
62
$ this ->objectManagerMock ->expects ($ this ->once ())
63
63
->method ('create ' )
64
64
->with (
65
65
Mysql::class,
66
- $ arguments
66
+ $ objectManagerArguments
67
67
);
68
68
$ this ->mysqlFactory ->create (
69
69
Mysql::class,
@@ -82,32 +82,32 @@ public function createDataProvider()
82
82
$ this ->selectFactoryMock = $ this ->getMock (SelectFactory::class, [], [], '' , false );
83
83
return [
84
84
[
85
- ['foo ' => 'bar ' ],
86
- $ this ->loggerMock ,
87
- $ this ->selectFactoryMock ,
88
85
[
89
86
'config ' => ['foo ' => 'bar ' ],
90
87
'logger ' => $ this ->loggerMock ,
91
88
'selectFactory ' => $ this ->selectFactoryMock
92
- ]
93
- ],
94
- [
89
+ ],
95
90
['foo ' => 'bar ' ],
96
91
$ this ->loggerMock ,
97
- null ,
92
+ $ this ->selectFactoryMock
93
+ ],
94
+ [
98
95
[
99
96
'config ' => ['foo ' => 'bar ' ],
100
97
'logger ' => $ this ->loggerMock
101
- ]
98
+ ],
99
+ ['foo ' => 'bar ' ],
100
+ $ this ->loggerMock ,
101
+ null
102
102
],
103
103
[
104
- ['foo ' => 'bar ' ],
105
- null ,
106
- $ this ->selectFactoryMock ,
107
104
[
108
105
'config ' => ['foo ' => 'bar ' ],
109
106
'selectFactory ' => $ this ->selectFactoryMock
110
- ]
107
+ ],
108
+ ['foo ' => 'bar ' ],
109
+ null ,
110
+ $ this ->selectFactoryMock
111
111
],
112
112
];
113
113
}
0 commit comments