You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -179,7 +181,7 @@ public function testReverseTransformWithEmptyFields()
179
181
'minutes' => '',
180
182
'seconds' => '6',
181
183
);
182
-
$this->setExpectedException('Symfony\Component\Form\Exception\TransformationFailedException', 'This amount of "minutes" is invalid');
184
+
$this->{method_exists($this, $_ = 'expectException') ? $_ : 'setExpectedException'}(TransformationFailedException::class, 'This amount of "minutes" is invalid');
183
185
$transformer->reverseTransform($input);
184
186
}
185
187
@@ -189,7 +191,7 @@ public function testReverseTransformWithWrongInvertType()
189
191
$input = array(
190
192
'invert' => '1',
191
193
);
192
-
$this->setExpectedException('Symfony\Component\Form\Exception\TransformationFailedException', 'The value of "invert" must be boolean');
194
+
$this->{method_exists($this, $_ = 'expectException') ? $_ : 'setExpectedException'}(TransformationFailedException::class, 'The value of "invert" must be boolean');
0 commit comments