@@ -51,30 +51,30 @@ public function testCommands(MakerTestDetails $makerTestDetails)
51
51
52
52
public function getCommandTests ()
53
53
{
54
- yield 'command ' => [ MakerTestDetails::createTest (
54
+ yield 'command ' => array ( MakerTestDetails::createTest (
55
55
$ this ->getMakerInstance (MakeCommand::class),
56
- [
56
+ array (
57
57
// command name
58
58
'app:foo ' ,
59
- ] )
59
+ ) )
60
60
->setFixtureFilesPath (__DIR__ .'/../fixtures/MakeCommand ' )
61
- ] ;
61
+ ) ;
62
62
63
- yield 'controller ' => [ MakerTestDetails::createTest (
63
+ yield 'controller ' => array ( MakerTestDetails::createTest (
64
64
$ this ->getMakerInstance (MakeController::class),
65
- [
65
+ array (
66
66
// controller class name
67
67
'FooBar ' ,
68
- ] )
68
+ ) )
69
69
->setFixtureFilesPath (__DIR__ .'/../fixtures/MakeController ' )
70
- ] ;
70
+ ) ;
71
71
72
- yield 'entity ' => [ MakerTestDetails::createTest (
72
+ yield 'entity ' => array ( MakerTestDetails::createTest (
73
73
$ this ->getMakerInstance (MakeEntity::class),
74
- [
74
+ array (
75
75
// entity class name
76
76
'TastyFood ' ,
77
- ] )
77
+ ) )
78
78
->setFixtureFilesPath (__DIR__ .'/../fixtures/MakeEntity ' )
79
79
->addReplacement (
80
80
'phpunit.xml.dist ' ,
@@ -89,98 +89,98 @@ public function getCommandTests()
89
89
'sqlite:///%kernel.project_dir%/var/app.db '
90
90
)
91
91
->addPostMakeCommand ('./bin/console doctrine:schema:create --env=test ' )
92
- ] ;
92
+ ) ;
93
93
94
- yield 'form ' => [ MakerTestDetails::createTest (
94
+ yield 'form ' => array ( MakerTestDetails::createTest (
95
95
$ this ->getMakerInstance (MakeForm::class),
96
- [
96
+ array (
97
97
// form name
98
98
'FooBar ' ,
99
- ] )
100
- ] ;
99
+ ) )
100
+ ) ;
101
101
102
- yield 'functional ' => [ MakerTestDetails::createTest (
102
+ yield 'functional ' => array ( MakerTestDetails::createTest (
103
103
$ this ->getMakerInstance (MakeFunctionalTest::class),
104
- [
104
+ array (
105
105
// functional test class name
106
106
'FooBar ' ,
107
- ] )
107
+ ) )
108
108
->setFixtureFilesPath (__DIR__ .'/../fixtures/MakeFunctional ' )
109
- ] ;
109
+ ) ;
110
110
111
- yield 'subscriber ' => [ MakerTestDetails::createTest (
111
+ yield 'subscriber ' => array ( MakerTestDetails::createTest (
112
112
$ this ->getMakerInstance (MakeSubscriber::class),
113
- [
113
+ array (
114
114
// subscriber name
115
115
'FooBar ' ,
116
116
// event name
117
117
'kernel.request ' ,
118
- ] )
119
- ] ;
118
+ ) )
119
+ ) ;
120
120
121
- yield 'subscriber_unknown_event_class ' => [ MakerTestDetails::createTest (
121
+ yield 'subscriber_unknown_event_class ' => array ( MakerTestDetails::createTest (
122
122
$ this ->getMakerInstance (MakeSubscriber::class),
123
- [
123
+ array (
124
124
// subscriber name
125
125
'FooBar ' ,
126
126
// event name
127
127
'foo.unknown_event ' ,
128
- ] )
129
- ] ;
128
+ ) )
129
+ ) ;
130
130
131
- yield 'serializer_encoder ' => [ MakerTestDetails::createTest (
131
+ yield 'serializer_encoder ' => array ( MakerTestDetails::createTest (
132
132
$ this ->getMakerInstance (MakeSerializerEncoder::class),
133
- [
133
+ array (
134
134
// encoder class name
135
135
'FooBarEncoder ' ,
136
136
// encoder format
137
137
'foobar ' ,
138
- ] )
139
- ] ;
138
+ ) )
139
+ ) ;
140
140
141
- yield 'twig_extension ' => [ MakerTestDetails::createTest (
141
+ yield 'twig_extension ' => array ( MakerTestDetails::createTest (
142
142
$ this ->getMakerInstance (MakeTwigExtension::class),
143
- [
143
+ array (
144
144
// extension class name
145
145
'FooBar ' ,
146
- ] )
147
- ] ;
146
+ ) )
147
+ ) ;
148
148
149
- yield 'unit_test ' => [ MakerTestDetails::createTest (
149
+ yield 'unit_test ' => array ( MakerTestDetails::createTest (
150
150
$ this ->getMakerInstance (MakeUnitTest::class),
151
- [
151
+ array (
152
152
// class name
153
153
'FooBar ' ,
154
- ] )
155
- ] ;
154
+ ) )
155
+ ) ;
156
156
157
- yield 'validator ' => [ MakerTestDetails::createTest (
157
+ yield 'validator ' => array ( MakerTestDetails::createTest (
158
158
$ this ->getMakerInstance (MakeValidator::class),
159
- [
159
+ array (
160
160
// validator name
161
161
'FooBar ' ,
162
- ] )
163
- ] ;
162
+ ) )
163
+ ) ;
164
164
165
- yield 'voter ' => [ MakerTestDetails::createTest (
165
+ yield 'voter ' => array ( MakerTestDetails::createTest (
166
166
$ this ->getMakerInstance (MakeVoter::class),
167
- [
167
+ array (
168
168
// voter class name
169
169
'FooBar ' ,
170
- ] )
171
- ] ;
170
+ ) )
171
+ ) ;
172
172
173
- yield 'auth_empty ' => [ MakerTestDetails::createTest (
173
+ yield 'auth_empty ' => array ( MakerTestDetails::createTest (
174
174
$ this ->getMakerInstance (MakeAuthenticator::class),
175
- [
175
+ array (
176
176
// class name
177
177
'AppCustomAuthenticator ' ,
178
- ] )
179
- ] ;
178
+ ) )
179
+ ) ;
180
180
181
- yield 'migration_with_changes ' => [ MakerTestDetails::createTest (
181
+ yield 'migration_with_changes ' => array ( MakerTestDetails::createTest (
182
182
$ this ->getMakerInstance (MakeMigration::class),
183
- [ /* no input */ ] )
183
+ array ( /* no input */ ) )
184
184
->setFixtureFilesPath (__DIR__ .'/../fixtures/MakeMigration ' )
185
185
->addReplacement (
186
186
'.env ' ,
@@ -204,11 +204,11 @@ public function getCommandTests()
204
204
$ iterator ->rewind ();
205
205
$ this ->assertContains (sprintf ('"src/Migrations/%s" ' , $ iterator ->current ()->getFilename ()), $ output );
206
206
})
207
- ] ;
207
+ ) ;
208
208
209
- yield 'migration_no_changes ' => [ MakerTestDetails::createTest (
209
+ yield 'migration_no_changes ' => array ( MakerTestDetails::createTest (
210
210
$ this ->getMakerInstance (MakeMigration::class),
211
- [ /* no input */ ] )
211
+ array ( /* no input */ ) )
212
212
->setFixtureFilesPath (__DIR__ .'/../fixtures/MakeMigration ' )
213
213
->addReplacement (
214
214
'.env ' ,
@@ -223,14 +223,14 @@ public function getCommandTests()
223
223
224
224
$ this ->assertContains ('No database changes were detected ' , $ output );
225
225
})
226
- ] ;
226
+ ) ;
227
227
228
- yield 'crud ' => [ MakerTestDetails::createTest (
228
+ yield 'crud ' => array ( MakerTestDetails::createTest (
229
229
$ this ->getMakerInstance (MakeCrud::class),
230
- [
230
+ array (
231
231
// entity class name
232
232
'SweetFood ' ,
233
- ] )
233
+ ) )
234
234
->setFixtureFilesPath (__DIR__ .'/../fixtures/MakeCrud ' )
235
235
->addReplacement (
236
236
'.env ' ,
@@ -241,7 +241,7 @@ public function getCommandTests()
241
241
->assert (function (string $ output , string $ directory ) {
242
242
$ this ->assertContains ('Success ' , $ output );
243
243
})
244
- ] ;
244
+ ) ;
245
245
}
246
246
247
247
/**
0 commit comments