| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function testEncrypt() |
||
| 27 | { |
||
| 28 | $value = 'value'; |
||
| 29 | $computedValue = 'computed_value'; |
||
| 30 | |||
| 31 | $this->algorithm->expects($this->once()) |
||
| 32 | ->method('compute') |
||
| 33 | ->with($value) |
||
| 34 | ->will($this->returnValue($computedValue)); |
||
| 35 | |||
| 36 | $this->assertSame($computedValue, $this->encryption->encrypt($value)); |
||
| 37 | } |
||
| 38 | |||
| 58 |