Skip to content

Commit 2630435

Browse files
committed
Update tests to reflect changes to underlying data
1 parent bdea251 commit 2630435

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/KeyValueTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class KeyValueTest extends \PHPUnit_Framework_TestCase
44
{
55
protected $maker;
6-
6+
77
public function setUp()
88
{
99
$this->maker = new PeterColes\Languages\Maker;
@@ -14,20 +14,20 @@ public function testDefaultSettings()
1414
$keyValue = $this->maker->keyValue();
1515

1616
$this->assertEquals(184, $keyValue->count());
17-
$this->assertEquals((object)[ 'key' => 'ab', 'value' => 'Abkhazian' ], $keyValue->first());
17+
$this->assertEquals((object) ['key' => 'ab', 'value' => 'Abkhazian'], $keyValue->first());
1818
}
1919

2020
public function testAlternativeLocale()
2121
{
2222
$keyValue = $this->maker->keyValue(null, 'zh');
2323

24-
$this->assertEquals((object)[ 'key' => 'ab', 'value' => '阿布哈西亚文' ], $keyValue->first());
24+
$this->assertEquals((object) ['key' => 'ab', 'value' => '阿布哈西亚语'], $keyValue->first());
2525
}
2626

2727
public function testAlternativeKeys()
2828
{
2929
$keyValue = $this->maker->keyValue(null, null, 'label', 'text');
3030

31-
$this->assertEquals((object)[ 'label' => 'zu', 'text' => 'Zulu'], $keyValue->last());
31+
$this->assertEquals((object) ['label' => 'zu', 'text' => 'Zulu'], $keyValue->last());
3232
}
3333
}

tests/LookupTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class LookupTest extends \PHPUnit_Framework_TestCase
44
{
55
protected $maker;
6-
6+
77
public function setUp()
88
{
99
$this->maker = new PeterColes\Languages\Maker;
@@ -20,7 +20,7 @@ public function testLocaleSetting()
2020
{
2121
$lookup = $this->maker->lookup(null, 'zh');
2222

23-
$this->assertEquals('荷兰文', $lookup['nl']);
23+
$this->assertEquals('荷兰语', $lookup['nl']);
2424
}
2525

2626
public function testReverseSetting()

0 commit comments

Comments
 (0)