Example #1
0
 /**
  * @expectedException Isign\Exception\QueryValidator
  * @expectedExceptionMessage Query parameters validation failed
  */
 public function testGetValidationFailed()
 {
     $violations = $this->getMockBuilder('Symfony\\Component\\Validator\\ConstraintViolationList')->disableOriginalConstructor()->getMock();
     $violations->method('count')->willReturn(1);
     $this->validatorStub->expects($this->once())->method('validate')->willReturn($violations);
     $this->client->get($this->methodStub);
 }