| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function testModeConversion($mode, $result): void |
||
| 26 | { |
||
| 27 | $objectWithTrait = $this->getObjectForTrait(ImagineCompatibleResizerTrait::class); |
||
| 28 | $reflection = new \ReflectionObject($objectWithTrait); |
||
| 29 | $method = $reflection->getMethod('convertMode'); |
||
| 30 | $method->setAccessible(true); |
||
| 31 | |||
| 32 | $convertedMode = $method->invokeArgs($objectWithTrait, [$mode]); |
||
| 33 | |||
| 34 | $this->assertSame($result, $convertedMode); |
||
| 35 | } |
||
| 36 | |||
| 45 |