tests/phpunit/Scaler/FileSizeScalerTest.php 1 location
|
@@ 56-63 (lines=8) @@
|
| 53 |
|
])); |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
public function test_scale_down() { |
| 57 |
|
$responsiveImage = $this->createResponsiveImage(); |
| 58 |
|
$imageObject = $this->createImageObject(); |
| 59 |
|
|
| 60 |
|
$responsiveImage = $this->scaler->scale($responsiveImage, $imageObject); |
| 61 |
|
|
| 62 |
|
$this->assertTrue(count($responsiveImage->getSrcset()) > 1); |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
// TODO: test algorithm |
| 66 |
|
|
tests/phpunit/Scaler/WidthScalerTest.php 1 location
|
@@ 58-65 (lines=8) @@
|
| 55 |
|
])); |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
public function test_scale_down() { |
| 59 |
|
$responsiveImage = $this->createResponsiveImage(); |
| 60 |
|
$imageObject = $this->createImageObject(); |
| 61 |
|
|
| 62 |
|
$responsiveImage = $this->scaler->scale($responsiveImage, $imageObject); |
| 63 |
|
|
| 64 |
|
$this->assertTrue(count($responsiveImage->getSrcset()) > 1); |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
// TODO: test algorithm |
| 68 |
|
|