@@ -342,7 +342,7 @@ private static function withChildConfigurationProvider(): iterable
342
342
343
343
public function test_it_can_log_the_start_of_the_processing (): void
344
344
{
345
- $ this ->logger ->startProgress (10 );
345
+ $ this ->logger ->logStart (10 );
346
346
347
347
$ expected = <<<'TXT'
348
348
0/10 [>---------------------------] 0%
@@ -353,20 +353,20 @@ public function test_it_can_log_the_start_of_the_processing(): void
353
353
354
354
public function test_it_cannot_start_an_already_started_process (): void
355
355
{
356
- $ this ->logger ->startProgress (10 );
356
+ $ this ->logger ->logStart (10 );
357
357
358
358
$ this ->expectException (InvalidArgumentException::class);
359
359
$ this ->expectExceptionMessage ('Cannot start the progress: already started. ' );
360
360
361
- $ this ->logger ->startProgress (10 );
361
+ $ this ->logger ->logStart (10 );
362
362
}
363
363
364
364
public function test_it_can_log_the_progress_of_the_processing (): void
365
365
{
366
- $ this ->logger ->startProgress (10 );
366
+ $ this ->logger ->logStart (10 );
367
367
$ this ->output ->fetch ();
368
368
369
- $ this ->logger ->advance ();
369
+ $ this ->logger ->logAdvance ();
370
370
371
371
$ expected = <<<'TXT'
372
372
@@ -381,15 +381,15 @@ public function test_it_cannot_advance_a_non_started_process(): void
381
381
$ this ->expectException (InvalidArgumentException::class);
382
382
$ this ->expectExceptionMessage ('Expected the progress to be started. ' );
383
383
384
- $ this ->logger ->advance ();
384
+ $ this ->logger ->logAdvance ();
385
385
}
386
386
387
387
public function test_it_can_log_the_progress_of_the_processing_of_multiple_items (): void
388
388
{
389
- $ this ->logger ->startProgress (10 );
389
+ $ this ->logger ->logStart (10 );
390
390
$ this ->output ->fetch ();
391
391
392
- $ this ->logger ->advance (4 );
392
+ $ this ->logger ->logAdvance (4 );
393
393
394
394
$ expected = <<<'TXT'
395
395
@@ -401,10 +401,10 @@ public function test_it_can_log_the_progress_of_the_processing_of_multiple_items
401
401
402
402
public function test_it_can_log_the_end_of_the_processing (): void
403
403
{
404
- $ this ->logger ->startProgress (10 );
404
+ $ this ->logger ->logStart (10 );
405
405
$ this ->output ->fetch ();
406
406
407
- $ this ->logger ->finish ('tokens ' );
407
+ $ this ->logger ->logFinish ('tokens ' );
408
408
409
409
$ expected = <<<'TXT'
410
410
@@ -422,16 +422,16 @@ public function test_it_cannot_end_the_processing_of_a_non_started_process(): vo
422
422
$ this ->expectException (InvalidArgumentException::class);
423
423
$ this ->expectExceptionMessage ('Expected the progress to be started. ' );
424
424
425
- $ this ->logger ->finish ('tokens ' );
425
+ $ this ->logger ->logFinish ('tokens ' );
426
426
}
427
427
428
428
public function test_it_can_log_the_unexpected_output_of_a_child_process (): void
429
429
{
430
- $ this ->logger ->startProgress (10 );
431
- $ this ->logger ->advance (4 );
430
+ $ this ->logger ->logStart (10 );
431
+ $ this ->logger ->logAdvance (4 );
432
432
$ this ->output ->fetch ();
433
433
434
- $ this ->logger ->logUnexpectedOutput (
434
+ $ this ->logger ->logUnexpectedChildProcessOutput (
435
435
'An error occurred. ' ,
436
436
self ::ADVANCEMENT_CHARACTER ,
437
437
);
@@ -449,11 +449,11 @@ public function test_it_can_log_the_unexpected_output_of_a_child_process(): void
449
449
450
450
public function test_it_removes_the_progress_character_of_the_unexpected_output_of_a_child_process (): void
451
451
{
452
- $ this ->logger ->startProgress (10 );
453
- $ this ->logger ->advance (4 );
452
+ $ this ->logger ->logStart (10 );
453
+ $ this ->logger ->logAdvance (4 );
454
454
$ this ->output ->fetch ();
455
455
456
- $ this ->logger ->logUnexpectedOutput (
456
+ $ this ->logger ->logUnexpectedChildProcessOutput (
457
457
'An error ' .self ::ADVANCEMENT_CHARACTER .' occurred. ' ,
458
458
self ::ADVANCEMENT_CHARACTER ,
459
459
);
@@ -473,7 +473,7 @@ public function test_it_can_log_the_start_of_a_command(): void
473
473
{
474
474
$ this ->output ->setVerbosity (OutputInterface::VERBOSITY_DEBUG );
475
475
476
- $ this ->logger ->logCommandStarted ('/path/to/bin/console foo:bar --child ' );
476
+ $ this ->logger ->logChildProcessStarted ('/path/to/bin/console foo:bar --child ' );
477
477
478
478
$ expected = <<<'TXT'
479
479
[debug] Command started: /path/to/bin/console foo:bar --child
@@ -487,7 +487,7 @@ public function test_it_can_log_the_end_of_a_command(): void
487
487
{
488
488
$ this ->output ->setVerbosity (OutputInterface::VERBOSITY_DEBUG );
489
489
490
- $ this ->logger ->logCommandFinished ();
490
+ $ this ->logger ->logChildProcessFinished ();
491
491
492
492
$ expected = <<<'TXT'
493
493
[debug] Command finished
0 commit comments