Skip to content

Commit dc5caab

Browse files
gmponosfabpot
authored andcommitted
[Tests] Change to willThrowException
1 parent 1094d29 commit dc5caab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/SimpleFormTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ public function testNotSynchronizedIfViewReverseTransformationFailed()
629629
$transformer = $this->getDataTransformer();
630630
$transformer->expects($this->once())
631631
->method('reverseTransform')
632-
->will($this->throwException(new TransformationFailedException()));
632+
->willThrowException(new TransformationFailedException());
633633

634634
$form = $this->getBuilder()
635635
->addViewTransformer($transformer)
@@ -645,7 +645,7 @@ public function testNotSynchronizedIfModelReverseTransformationFailed()
645645
$transformer = $this->getDataTransformer();
646646
$transformer->expects($this->once())
647647
->method('reverseTransform')
648-
->will($this->throwException(new TransformationFailedException()));
648+
->willThrowException(new TransformationFailedException());
649649

650650
$form = $this->getBuilder()
651651
->addModelTransformer($transformer)

0 commit comments

Comments
 (0)