Skip to content

Commit 52cd562

Browse files
Merge branch '4.2'
* 4.2: [Twig] Remove spaces to fix whitespace in tags [Twig] Replace for-loops with blocks for attributes fixed CS [Tests] Change to willThrowException [Console] fix PHPDoc in Command Update FileLoaderLoadException.php Fix wrong calls to clearstatcache Add Vietnamese translation for validators Allow running PHPUnit with "xdebug.scream" ON [VarDumper] Add descriptors tests [Cache] fix bad optim [Yaml] detect circular references [DI] fix reporting bindings on overriden services as unused [Routing] minor fix or previous PR
2 parents 96b52c0 + 9b03540 commit 52cd562

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0"?>
2+
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
3+
<file source-language="en" datatype="plaintext" original="file.ext">
4+
<body>
5+
<trans-unit id="28">
6+
<source>This form should not contain extra fields.</source>
7+
<target>Mẫu này không nên chứa trường mở rộng</target>
8+
</trans-unit>
9+
<trans-unit id="29">
10+
<source>The uploaded file was too large. Please try to upload a smaller file.</source>
11+
<target>Tập tin tải lên quá lớn. Vui lòng thử lại với tập tin nhỏ hơn.</target>
12+
</trans-unit>
13+
<trans-unit id="30">
14+
<source>The CSRF token is invalid. Please try to resubmit the form.</source>
15+
<target>CSRF token không hợp lệ. Vui lòng thử lại.</target>
16+
</trans-unit>
17+
</body>
18+
</file>
19+
</xliff>

Tests/SimpleFormTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ public function testNotSynchronizedIfViewReverseTransformationFailed()
620620
$transformer = $this->getDataTransformer();
621621
$transformer->expects($this->once())
622622
->method('reverseTransform')
623-
->will($this->throwException(new TransformationFailedException()));
623+
->willThrowException(new TransformationFailedException());
624624

625625
$form = $this->getBuilder()
626626
->addViewTransformer($transformer)
@@ -636,7 +636,7 @@ public function testNotSynchronizedIfModelReverseTransformationFailed()
636636
$transformer = $this->getDataTransformer();
637637
$transformer->expects($this->once())
638638
->method('reverseTransform')
639-
->will($this->throwException(new TransformationFailedException()));
639+
->willThrowException(new TransformationFailedException());
640640

641641
$form = $this->getBuilder()
642642
->addModelTransformer($transformer)

0 commit comments

Comments
 (0)