فهرست منبع

[Locale] use assertSame in parse tests

Igor Wiedler 14 سال پیش
والد
کامیت
3f42be3fe9
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      tests/Symfony/Tests/Component/Locale/Stub/StubIntlDateFormatterTest.php

+ 2 - 2
tests/Symfony/Tests/Component/Locale/Stub/StubIntlDateFormatterTest.php

@@ -429,7 +429,7 @@ class StubIntlDateFormatterTest extends LocaleTestCase
     public function testParseIntl($pattern, $value, $expected)
     {
         $formatter = $this->createIntlFormatter($pattern);
-        $this->assertEquals($expected, $formatter->parse($value));
+        $this->assertSame($expected, $formatter->parse($value));
     }
 
     /**
@@ -438,7 +438,7 @@ class StubIntlDateFormatterTest extends LocaleTestCase
     public function testParseStub($pattern, $value, $expected)
     {
         $formatter = $this->createStubFormatter($pattern);
-        $this->assertEquals($expected, $formatter->parse($value));
+        $this->assertSame($expected, $formatter->parse($value));
     }
 
     public function parseProvider()