8000 Merge branch '4.0' into 4.1 · symfony/symfony@091c5f6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 091c5f6

Browse files
Merge branch '4.0' into 4.1
* 4.0: Fix tests for legacy phpunit versions Add missing Ukrainian translations Use an empty string as default for assertEquals
2 parents a23a4a4 + 7e01f9b commit 091c5f6

File tree

5 files changed

+45
-9
lines changed

5 files changed

+45
-9
lines changed

src/Symfony/Component/DomCrawler/Tests/CrawlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ public function testParents()
10271027
/**
10281028
* @dataProvider getBaseTagData
10291029
*/
1030-
public function testBaseTag($baseValue, $linkValue, $expectedUri, $currentUri = null, $description = null)
1030+
public function testBaseTag($baseValue, $linkValue, $expectedUri, $currentUri = null, $description = '')
10311031
{
10321032
$crawler = new Crawler('<html><base href="'.$baseValue.'"><a href="'.$linkValue.'"></a></html>', $currentUri);
10331033
$this->assertEquals($expectedUri, $crawler->filterXPath('//a')->link()->getUri(), $description);

src/Symfony/Component/Stopwatch/Tests/StopwatchEventTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function testDuration()
7373
$event->start();
7474
usleep(200000);
7575
$event->stop();
76-
$this->assertEquals(200, $event->getDuration(), null, self::DELTA);
76+
$this->assertEquals(200, $event->getDuration(), '', self::DELTA);
7777

7878
$event = new StopwatchEvent(microtime(true) * 1000);
7979
$event->start();
@@ -83,15 +83,15 @@ public function testDuration()
8383
$event->start();
8484
usleep(100000);
8585
$event->stop();
86-
$this->assertEquals(200, $event->getDuration(), null, self::DELTA);
86+
$this->assertEquals(200, $event->getDuration(), '', self::DELTA);
8787
}
8888

8989
public function testDurationBeforeStop()
9090
{
9191
$event = new StopwatchEvent(microtime(true) * 1000);
9292
$event->start();
9393
usleep(200000);
94-
$this->assertEquals(200, $event->getDuration(), null, self::DELTA);
94+
$this->assertEquals(200, $event->getDuration(), '', self::DELTA);
9595

9696
$event = new StopwatchEvent(microtime(true) * 1000);
9797
$event->start();
@@ -100,7 +100,7 @@ public function testDurationBeforeStop()
100100
usleep(50000);
101101
$event->start();
102102
usleep(100000);
103-
$this->assertEquals(100, $event->getDuration(), null, self::DELTA);
103+
$this->assertEquals(100, $event->getDuration(), '', self::DELTA);
104104
}
105105

106106
/**
@@ -134,7 +134,7 @@ public function testEnsureStopped()
134134
$event->start();
135135
usleep(100000);
136136
$event->ensureStopped();
137-
$this->assertEquals(300, $event->getDuration(), null, self::DELTA);
137+
$this->assertEquals(300, $event->getDuration(), '', self::DELTA);
138138
}
139139

140140
public function testStartTime()
@@ -151,7 +151,7 @@ public function testStartTime()
151151
$event->start();
152152
usleep(100000);
153153
$event->stop();
154-
$this->assertEquals(0, $event->getStartTime(), null, self::DELTA);
154+
$this->assertEquals(0, $event->getStartTime(), '', self::DELTA);
155155
}
156156

157157
public function testHumanRepresentation()

src/Symfony/Component/Stopwatch/Tests/StopwatchTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function testStop()
7979
$event = $stopwatch->stop('foo');
8080

8181
$this->assertInstanceOf('Symfony\Component\Stopwatch\StopwatchEvent', $event);
82-
$this->assertEquals(200, $event->getDuration(), null, self::DELTA);
82+
$this->assertEquals(200, $event->getDuration(), '', self::DELTA);
8383
}
8484

8585
/**

src/Symfony/Component/Validator/Resources/translations/validators.uk.xlf

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,42 @@
278278
<source>This value should not be identical to {{ compared_value_type }} {{ compared_value }}.</source>
279279
<target>Значення не повинно бути ідентичним {{ compared_value_type }} {{ compared_value }}.</target>
280280
</trans-unit>
281+
<trans-unit id="73">
282+
<source>The image ratio is too big ({{ ratio }}). Allowed maximum ratio is {{ max_ratio }}.</source>
283+
<target>Співвідношення сторін зображення занадто велике ({{ ratio }}). Максимальне співвідношення сторін {{ max_ratio }}.</target>
284+
</trans-unit>
285+
<trans-unit id="74">
286+
<source>The image ratio is too small ({{ ratio }}). Minimum ratio expected is {{ min_ratio }}.</source>
287+
<target>Співвідношення сторін зображення занадто мало ({{ ratio }}). Мінімальне співвідношення сторін {{ min_ratio }}.</target>
288+
</trans-unit>
289+
<trans-unit id="75">
290+
<source>The image is square ({{ width }}x{{ height }}px). Square images are not allowed.</source>
291+
<target>Зображення квадратне ({{ width }}x{{ height }}px). Квадратні зображення не дозволені.</target>
292+
</trans-unit>
293+
<trans-unit id="76">
294+
<source>The image is landscape oriented ({{ width }}x{{ height }}px). Landscape oriented images are not allowed.</source>
295+
<target>Зображення альбомної орієнтації ({{ width }}x{{ height }}px). Зображення альбомної орієнтації не дозволені.</target>
296+
</trans-unit>
297+
<trans-unit id="77">
298+
<source>The image is portrait oriented ({{ width }}x{{ height }}px). Portrait oriented images are not allowed.</source>
299+
<target>Зображення в портретній орієнтації ({{ width }}x{{ height }}px). Зображення в портретної орієнтації не дозволені.</target>
300+
</trans-unit>
301+
<trans-unit id="78">
302+
<source>An empty file is not allowed.</source>
303+
<target>Порожні файли не дозволені.</target>
304+
</trans-unit>
305+
<trans-unit id="79">
306+
<source>The host could not be resolved.</source>
307+
<target>Ім'я хоста не знайдено.</target>
308+
</trans-unit>
309+
<trans-unit id="80">
310+
<source>This value does not match the expected {{ charset }} charset.</source>
311+
<target>Значення не збігається з очікуваним {{ charset }} кодуванням.</target>
312+
</trans-unit>
313+
<trans-unit id="81">
314+
<source>This is not a valid Business Identifier Code (BIC).</source>
315+
<target>Це не дійсний банківський код (BIC).</target>
316+
</trans-unit>
281317
<trans-unit id="82">
282318
<source>Error</source>
283319
<target>Помилка</target>

src/Symfony/Component/Yaml/Tests/Fixtures/escapedCharacters.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ yaml: |
44
php: |
55
"\\0 \\ \\a \\b \\n"
66
---
7-
test: null
7+
test: 'null'
88
yaml: |
99
"\0"
1010
php: |

0 commit comments

Comments
 (0)
0