Ejemplo n.º 1
0
 public function testGetLocalizedLongString()
 {
     $month = new Month(Date::factory('2024-10-09'));
     $shouldBe = '2024, October';
     $this->assertEquals($shouldBe, $month->getLocalizedLongString());
 }
Ejemplo n.º 2
0
 /**
  * @group Core
  * @group Month
  * @dataProvider getLocalizedLongStrings
  */
 public function testGetLocalizedLongString($language, $shouldBe)
 {
     StaticContainer::get('Piwik\\Translation\\Translator')->setCurrentLanguage($language);
     $month = new Month(Date::factory('2024-10-09'));
     $this->assertEquals($shouldBe, $month->getLocalizedLongString());
 }