コード例 #1
0
ファイル: DayTest.php プロジェクト: diosmosis/piwik
 /**
  * @group Core
  * @dataProvider getLocalizedLongStrings
  */
 public function testGetLocalizedLongString($language, $shouldBe)
 {
     StaticContainer::get('Piwik\\Translation\\Translator')->setCurrentLanguage($language);
     $month = new Day(Date::factory('2024-10-09'));
     $this->assertEquals($shouldBe, $month->getLocalizedLongString());
 }
コード例 #2
0
ファイル: DayTest.php プロジェクト: carriercomm/piwik
 /**
  * @group Core
  */
 public function testGetLocalizedLongString()
 {
     Translate::loadEnglishTranslation();
     $month = new Day(Date::factory('2024-10-09'));
     $shouldBe = 'Wednesday 9 October 2024';
     $this->assertEquals($shouldBe, $month->getLocalizedLongString());
 }