8000 [Intl] Update assertions to verify data is not empty · symfony/symfony@a1a551d · GitHub
[go: up one dir, main page]

Skip to content

Commit a1a551d

Browse files
committed
[Intl] Update assertions to verify data is not empty
1 parent b15ea8d commit a1a551d

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/Symfony/Component/Intl/Tests/Data/Provider/AbstractLanguageDataProviderTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,7 @@ public function testGetNames($displayLocale)
856856

857857
sort($languages);
858858

859+
$this->assertNotEmpty($languages);
859860
$this->assertEmpty(array_diff($languages, static::$languages));
860861
}
861862

src/Symfony/Component/Intl/Tests/Data/Provider/AbstractLocaleDataProviderTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public function testGetNames($displayLocale)
5858

5959
// We can't assert on exact list of locale, as there's too many variations.
6060
// The best we can do is to make sure getNames() returns a subset of what getLocales() returns.
61+
$this->assertNotEmpty($locales);
6162
$this->assertEmpty(array_diff($locales, $this->getLocales()));
6263
}
6364

src/Symfony/Component/Intl/Tests/Data/Provider/AbstractScriptDataProviderTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ public function testGetNames($displayLocale)
282282

283283
// We can't assert on exact list of scripts, as there's too many variations between locales.
284284
// The best we can do is to make sure getNames() returns a subset of what getScripts() returns.
285+
$this->assertNotEmpty($scripts);
285286
$this->assertEmpty(array_diff($scripts, self::$scripts));
286287
}
287288

0 commit comments

Comments
 (0)
0