| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 27 | public function testLoadRotate90Degrees() |
||
| 28 | { |
||
| 29 | $loader = new RotateFilterLoader(); |
||
| 30 | |||
| 31 | $image = $this->getMockImage(); |
||
| 32 | $rotatedImage = $this->getMockImage(); |
||
| 33 | |||
| 34 | $image |
||
| 35 | ->expects($this->once()) |
||
| 36 | ->method('rotate') |
||
| 37 | ->with(90) |
||
| 38 | ->willReturn($rotatedImage) |
||
| 39 | ; |
||
| 40 | |||
| 41 | $result = $loader->load($image, array('angle' => 90)); |
||
| 42 | $this->assertSame($rotatedImage, $result); |
||
| 43 | } |
||
| 44 | } |
||
| 45 |