Skip to content

Commit 9c2db70

Browse files
Merge branch '3.4' into 4.3
* 3.4: cs fix Replace calls to setExpectedException by Pollyfill
2 parents 482a618 + df9e6c0 commit 9c2db70

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Tests/OptionsResolverTest.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -869,12 +869,8 @@ public function testResolveFailsIfInvalidType($actualType, $allowedType, $except
869869
$this->resolver->setDefined('option');
870870
$this->resolver->setAllowedTypes('option', $allowedType);
871871

872-
if (method_exists($this, 'expectException')) {
873-
$this->expectException('Symfony\Component\OptionsResolver\Exception\InvalidOptionsException');
874-
$this->expectExceptionMessage($exceptionMessage);
875-
} else {
876-
$this->setExpectedException('Symfony\Component\OptionsResolver\Exception\InvalidOptionsException', $exceptionMessage);
877-
}
872+
$this->expectException('Symfony\Component\OptionsResolver\Exception\InvalidOptionsException');
873+
$this->expectExceptionMessage($exceptionMessage);
878874

879875
$this->resolver->resolve(['option' => $actualType]);
880876
}

0 commit comments

Comments
 (0)