|
126 | 126 | test('it can detect FILLER and DATE columns', function () { |
127 | 127 | Process::fake(); |
128 | 128 |
|
129 | | - $loader = new SQLLoader(); |
| 129 | + $loader = new SQLLoader; |
130 | 130 | $loader->inFile(__DIR__.'/../data/filler.dat') |
131 | 131 | ->as('users.ctl') |
132 | 132 | ->withHeaders() |
|
151 | 151 | test('it can detect BOOLEAN columns and set the default value if empty', function () { |
152 | 152 | Process::fake(); |
153 | 153 |
|
154 | | - $loader = new SQLLoader(); |
| 154 | + $loader = new SQLLoader; |
155 | 155 | $loader->inFile(__DIR__.'/../data/filler.dat') |
156 | 156 | ->as('users.ctl') |
157 | 157 | ->withHeaders() |
|
171 | 171 | test('it can detect BOOLEAN columns and set the default value to 0 if no default was defined', function () { |
172 | 172 | Process::fake(); |
173 | 173 |
|
174 | | - $loader = new SQLLoader(); |
| 174 | + $loader = new SQLLoader; |
175 | 175 | $loader->inFile(__DIR__.'/../data/filler.dat') |
176 | 176 | ->as('users.ctl') |
177 | 177 | ->withHeaders() |
|
191 | 191 | test('it accepts withHeader on input file with wildcard', function () { |
192 | 192 | Process::fake(); |
193 | 193 |
|
194 | | - $loader = new SQLLoader(); |
| 194 | + $loader = new SQLLoader; |
195 | 195 | $path = __DIR__.'/../data/wildcard/*.dat'; |
196 | 196 | $loader->inFile($path) |
197 | 197 | ->as('users.ctl') |
|
215 | 215 | test('it can set the default date format', function () { |
216 | 216 | Process::fake(); |
217 | 217 |
|
218 | | - $loader = new SQLLoader(); |
| 218 | + $loader = new SQLLoader; |
219 | 219 | $loader->inFile(__DIR__.'/../data/filler.dat') |
220 | 220 | ->as('users.ctl') |
221 | 221 | ->dateFormat('YYYY-MM-DD') |
|
235 | 235 | test('it can process constants columns', function () { |
236 | 236 | Process::fake(); |
237 | 237 |
|
238 | | - $loader = new SQLLoader(); |
| 238 | + $loader = new SQLLoader; |
239 | 239 | $loader->inFile(__DIR__.'/../data/users.dat') |
240 | 240 | ->as('users.ctl') |
241 | 241 | ->withHeaders() |
|
262 | 262 | test('it can set input file os file proc clause', function () { |
263 | 263 | Process::fake(); |
264 | 264 |
|
265 | | - $loader = new SQLLoader(); |
| 265 | + $loader = new SQLLoader; |
266 | 266 | $loader->inFile(__DIR__.'/../data/users.dat', osFileProcClause: 'os file proc') |
267 | 267 | ->as('users.ctl') |
268 | 268 | ->withHeaders() |
|
0 commit comments