8000 minor fixes · symfony/symfony@284ea74 · GitHub
[go: up one dir, main page]

Skip to content

Commit 284ea74

Browse files
committed
minor fixes
1 parent 2cda08c commit 284ea74

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/Symfony/Component/Translation/Tests/MessageCatalogueTest.php

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ public function testAll()
3939
$this->assertEquals($messages, $catalogue->all());
4040

4141
$messages = ['domain1+intl-icu' => ['foo' => 'bar']] + $messages + [
42-
'domain2+intl-icu' => ['bar' => 'foo'],
43-
'domain3+intl-icu' => ['biz' => 'biz'],
44-
];
42+
'domain2+intl-icu' => ['bar' => 'foo'],
43+
'domain3+intl-icu' => ['biz' => 'biz'],
44+
];
4545
$catalogue = new MessageCatalogue('en', $messages);
4646

4747
$this->assertEquals(['foo' => 'bar'], $catalogue->all('domain1'));
@@ -56,9 +56,6 @@ public function testAll()
5656
$this->assertEquals($messages, $catalogue->all());
5757
}
5858

59-
/**
60-
* @depends testAll
61-
*/
6259
public function testAllIntICU()
6360
{
6461
$messages = [
@@ -69,18 +66,18 @@ public function testAllIntICU()
6966
$catalogue = new MessageCatalogue('en', $messages);
7067

7168
// separated domains
72-
$this->assertEquals(['foo' => 'bar'], $catalogue->all('domain1+intl-icu'));
73-
$this->assertEquals(['bar' => 'foo'], $catalogue->all('domain2+intl-icu'));
69+
$this->assertSame(['foo' => 'bar'], $catalogue->all('domain1+intl-icu'));
70+
$this->assertSame(['bar' => 'foo'], $catalogue->all('domain2+intl-icu'));
7471

7572
// merged, intl-icu ignored
76-
$this->assertEquals(['bar' => 'foo', 'biz' => 'biz'], $catalogue->all('domain2'));
73+
$this->assertSame(['bar' => 'foo', 'biz' => 'biz'], $catalogue->all('domain2'));
7774

7875
// intl-icu ignored
7976
$messagesExpected = [
8077
'domain1' => ['foo' => 'bar'],
8178
'domain2' => ['bar' => 'foo', 'biz' => 'biz'],
8279
];
83-
$this->assertEquals($messagesExpected, $catalogue->all());
80+
$this->assertSame($messagesExpected, $catalogue->all());
8481
}
8582

8683
public function testHas()

0 commit comments

Comments
 (0)
0