/** * @expectedException \LightSaml\Error\LightSamlValidationException * @expectedExceptionMessage Assertion element must have the Version attribute value equal to 2.0 */ public function test_must_have_version20() { $validator = new AssertionValidator($this->getNameIdValidatorMock(), $this->getSubjectValidatorMock(), $this->getStatementValidatorMock()); $assertion = new Assertion(); $assertion->setVersion('1.0'); $validator->validateAssertion($assertion); }