| @@ 536-542 (lines=7) @@ | ||
| 533 | * @test  | 
                                |
| 534 | * @covers ::resize  | 
                                |
| 535 | */  | 
                                |
| 536 | public function resizeTransparentImageWithTransparentBackground()  | 
                                |
| 537 |     { | 
                                |
| 538 |         $source = $this->getTestImage('transparent.png'); | 
                                |
| 539 | $actual = Image::resize($source, 128, 128, ['color' => 'transparent']);  | 
                                |
| 540 |         $expected = $this->getTestImage('transparent-resize.png'); | 
                                |
| 541 | $this->assertSameImage($expected, $actual);  | 
                                |
| 542 | }  | 
                                |
| 543 | ||
| 544 | /**  | 
                                |
| 545 | * @test  | 
                                |
| @@ 548-554 (lines=7) @@ | ||
| 545 | * @test  | 
                                |
| 546 | * @covers ::resize  | 
                                |
| 547 | */  | 
                                |
| 548 | public function resizeTransparentImageWithColorBackground()  | 
                                |
| 549 |     { | 
                                |
| 550 |         $source = $this->getTestImage('transparent.png'); | 
                                |
| 551 | $actual = Image::resize($source, 128, 128, ['color' => 'green']);  | 
                                |
| 552 |         $expected = $this->getTestImage('transparent-resize-color.png'); | 
                                |
| 553 | $this->assertSameImage($expected, $actual);  | 
                                |
| 554 | }  | 
                                |
| 555 | ||
| 556 | /**  | 
                                |
| 557 | * @test  | 
                                |
| @@ 560-566 (lines=7) @@ | ||
| 557 | * @test  | 
                                |
| 558 | * @covers ::resize  | 
                                |
| 559 | */  | 
                                |
| 560 | public function resizeTransparentImageWithUpsize()  | 
                                |
| 561 |     { | 
                                |
| 562 |         $source = $this->getTestImage('transparent.png'); | 
                                |
| 563 | $actual = Image::resize($source, 128, 128, ['upsize' => true]);  | 
                                |
| 564 |         $expected = $this->getTestImage('transparent-upsize.png'); | 
                                |
| 565 | $this->assertSameImage($expected, $actual);  | 
                                |
| 566 | }  | 
                                |
| 567 | ||
| 568 | /**  | 
                                |
| 569 | * @test  | 
                                |
| @@ 572-578 (lines=7) @@ | ||
| 569 | * @test  | 
                                |
| 570 | * @covers ::resize  | 
                                |
| 571 | */  | 
                                |
| 572 | public function resizeTransparentImageWithColorOfBlur()  | 
                                |
| 573 |     { | 
                                |
| 574 |         $source = $this->getTestImage('transparent.png'); | 
                                |
| 575 | $actual = Image::resize($source, 128, 128, ['color' => 'blur']);  | 
                                |
| 576 |         $expected = $this->getTestImage('transparent-blur.png'); | 
                                |
| 577 | $this->assertSameImage($expected, $actual);  | 
                                |
| 578 | }  | 
                                |
| 579 | ||
| 580 | /**  | 
                                |
| 581 | * @test  | 
                                |
| @@ 584-590 (lines=7) @@ | ||
| 581 | * @test  | 
                                |
| 582 | * @covers ::resize  | 
                                |
| 583 | */  | 
                                |
| 584 | public function resizeTransparentImageWithBlurBackground()  | 
                                |
| 585 |     { | 
                                |
| 586 |         $source = $this->getTestImage('transparent.png'); | 
                                |
| 587 | $actual = Image::resize($source, 128, 128, ['blurBackground' => true]);  | 
                                |
| 588 |         $expected = $this->getTestImage('transparent-blur.png'); | 
                                |
| 589 | $this->assertSameImage($expected, $actual);  | 
                                |
| 590 | }  | 
                                |
| 591 | ||
| 592 | /**  | 
                                |
| 593 | * @test  | 
                                |