File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 22
33namespace Spatie \LaravelImageOptimizer \Test ;
44
5- use PHPUnit \Framework \Attributes \Test ;
65use ImageOptimizer ;
6+ use PHPUnit \Framework \Attributes \Test ;
77
88class FacadeTest extends TestCase
99{
10- #[Test]
10+ #[Test]
1111 public function it_has_a_facade ()
1212 {
1313 $ testImagePath = $ this ->getImagePath ('logo.png ' );
Original file line number Diff line number Diff line change 22
33namespace Spatie \LaravelImageOptimizer \Test ;
44
5- use PHPUnit \Framework \Attributes \Test ;
65use Spatie \ImageOptimizer \OptimizerChain ;
76use Spatie \LaravelImageOptimizer \Exceptions \InvalidConfiguration ;
87use stdClass ;
8+ use PHPUnit \Framework \Attributes \Test ;
99
1010class ImageOptimizerTest extends TestCase
1111{
12- #[Test]
12+ #[Test]
1313 public function it_has_a_valid_default_configuration ()
1414 {
1515 $ this ->assertInstanceOf (OptimizerChain::class, app (OptimizerChain::class));
1616 }
1717
18- #[Test]
18+ #[Test]
1919 public function it_will_throw_an_exception_with_a_malconfigured_logger ()
2020 {
2121 config ()->set ('image-optimizer.log_optimizer_activity ' , stdClass::class);
@@ -25,7 +25,7 @@ public function it_will_throw_an_exception_with_a_malconfigured_logger()
2525 app (OptimizerChain::class);
2626 }
2727
28- #[Test]
28+ #[Test]
2929 public function it_can_log_to_the_default_log ()
3030 {
3131 config ()->set ('image-optimizer.log_optimizer_activity ' , true );
@@ -44,7 +44,7 @@ public function it_can_log_to_the_default_log()
4444 $ this ->assertStringContainsString ('Start optimizing ' , $ logWriter ->getAllLinesAsString ());
4545 }
4646
47- #[Test]
47+ #[Test]
4848 public function it_will_throw_an_exception_with_a_malconfigured_optimizer ()
4949 {
5050 config ()->set ('image-optimizer.optimizers ' , [stdClass::class => []]);
Original file line number Diff line number Diff line change 22
33namespace Spatie \LaravelImageOptimizer \Test ;
44
5- use PHPUnit \Framework \Attributes \Test ;
65use Illuminate \Http \UploadedFile ;
76use Illuminate \Support \Facades \Route ;
87use Spatie \LaravelImageOptimizer \Middlewares \OptimizeImages ;
8+ use PHPUnit \Framework \Attributes \Test ;
99
1010class MiddlewareTest extends TestCase
1111{
12- #[Test]
12+ #[Test]
1313 public function it_will_try_to_optimize_all_files_in_a_request ()
1414 {
1515 $ originalImagePath = $ this ->getImagePath ('logo.png ' );
@@ -26,7 +26,7 @@ public function it_will_try_to_optimize_all_files_in_a_request()
2626 $ this ->assertDecreasedFileSize ($ uploadPath , $ originalImagePath );
2727 }
2828
29- #[Test]
29+ #[Test]
3030 public function it_will_optimize_all_files_at_all_depths ()
3131 {
3232 $ originalImagePath1 = $ this ->getImagePath ('logo.png ' );
You can’t perform that action at this time.
0 commit comments