| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function testGetResponseData() |
||
| 12 | { |
||
| 13 | $message = 'Message'; |
||
| 14 | $violations = $this->getMockBuilder('Symfony\Component\Validator\ConstraintViolationList') |
||
| 15 | ->disableOriginalConstructor() |
||
| 16 | ->getMock() |
||
| 17 | ; |
||
| 18 | |||
| 19 | $violations->method('__toString')->willReturn('list of violations'); |
||
| 20 | |||
| 21 | $object = new QueryValidator($message, $violations); |
||
| 22 | |||
| 23 | $this->assertEquals($violations, $object->getViolations()); |
||
| 24 | $this->assertEquals($message . ': list of violations', $object->getMessage()); |
||
| 25 | } |
||
| 27 |