- Implemented tests to verify the functionality of the ImageOptimizerService. - Tests cover optimization of supported image formats, handling of unsupported files, and cleanup of temporary files. - Added functionality to store optimized images onto disk using a storage service.
17 lines
553 B
PHP
17 lines
553 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
use Tests\TestCase;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Test Case
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| The closure you provide to your test functions is always bound to a specific PHPUnit test
|
|
| case class. By default, that class is "PHPUnit\Framework\TestCase". Of course, you may
|
|
| need to change it using the "pest()" function to bind a different classes or traits.
|
|
|
|
|
*/
|
|
|
|
pest()->extend(TestCase::class)->in('Feature', 'Unit');
|