|
|
|
|
@ -167,11 +167,11 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
);
|
|
|
|
|
$this->l10n->method('n')->willReturnMap([
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n day on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n days on %1$s between %2$s - %3$s',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
|
|
|
|
'In a day on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
|
|
|
|
'In 1 day on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
|
|
|
|
]
|
|
|
|
|
]);
|
|
|
|
|
// construct time factory return(s)
|
|
|
|
|
@ -215,11 +215,11 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
);
|
|
|
|
|
$this->l10n->method('n')->willReturnMap([
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n day on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n days on %1$s between %2$s - %3$s',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
|
|
|
|
'In a day on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
|
|
|
|
'In 1 day on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
|
|
|
|
]
|
|
|
|
|
]);
|
|
|
|
|
// construct time factory return(s)
|
|
|
|
|
@ -360,85 +360,85 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$this->l10n->method('n')->willReturnMap([
|
|
|
|
|
// singular entire day
|
|
|
|
|
[
|
|
|
|
|
'In a minute on %1$s for the entire day',
|
|
|
|
|
'In %n minute on %1$s for the entire day',
|
|
|
|
|
'In %n minutes on %1$s for the entire day',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024'],
|
|
|
|
|
'In a minute on July 1, 2024 for the entire day'
|
|
|
|
|
'In 1 minute on July 1, 2024 for the entire day'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a hour on %1$s for the entire day',
|
|
|
|
|
'In %n hour on %1$s for the entire day',
|
|
|
|
|
'In %n hours on %1$s for the entire day',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024'],
|
|
|
|
|
'In a hour on July 1, 2024 for the entire day'
|
|
|
|
|
'In 1 hour on July 1, 2024 for the entire day'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s for the entire day',
|
|
|
|
|
'In %n day on %1$s for the entire day',
|
|
|
|
|
'In %n days on %1$s for the entire day',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024'],
|
|
|
|
|
'In a day on July 1, 2024 for the entire day'
|
|
|
|
|
'In 1 day on July 1, 2024 for the entire day'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a week on %1$s for the entire day',
|
|
|
|
|
'In %n week on %1$s for the entire day',
|
|
|
|
|
'In %n weeks on %1$s for the entire day',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024'],
|
|
|
|
|
'In a week on July 1, 2024 for the entire day'
|
|
|
|
|
'In 1 week on July 1, 2024 for the entire day'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a month on %1$s for the entire day',
|
|
|
|
|
'In %n month on %1$s for the entire day',
|
|
|
|
|
'In %n months on %1$s for the entire day',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024'],
|
|
|
|
|
'In a month on July 1, 2024 for the entire day'
|
|
|
|
|
'In 1 month on July 1, 2024 for the entire day'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a year on %1$s for the entire day',
|
|
|
|
|
'In %n year on %1$s for the entire day',
|
|
|
|
|
'In %n years on %1$s for the entire day',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024'],
|
|
|
|
|
'In a year on July 1, 2024 for the entire day'
|
|
|
|
|
'In 1 year on July 1, 2024 for the entire day'
|
|
|
|
|
],
|
|
|
|
|
// plural entire day
|
|
|
|
|
[
|
|
|
|
|
'In a minute on %1$s for the entire day',
|
|
|
|
|
'In %n minute on %1$s for the entire day',
|
|
|
|
|
'In %n minutes on %1$s for the entire day',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024'],
|
|
|
|
|
'In 2 minutes on July 1, 2024 for the entire day'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a hour on %1$s for the entire day',
|
|
|
|
|
'In %n hour on %1$s for the entire day',
|
|
|
|
|
'In %n hours on %1$s for the entire day',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024'],
|
|
|
|
|
'In 2 hours on July 1, 2024 for the entire day'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s for the entire day',
|
|
|
|
|
'In %n day on %1$s for the entire day',
|
|
|
|
|
'In %n days on %1$s for the entire day',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024'],
|
|
|
|
|
'In 2 days on July 1, 2024 for the entire day'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a week on %1$s for the entire day',
|
|
|
|
|
'In %n week on %1$s for the entire day',
|
|
|
|
|
'In %n weeks on %1$s for the entire day',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024'],
|
|
|
|
|
'In 2 weeks on July 1, 2024 for the entire day'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a month on %1$s for the entire day',
|
|
|
|
|
'In %n month on %1$s for the entire day',
|
|
|
|
|
'In %n months on %1$s for the entire day',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024'],
|
|
|
|
|
'In 2 months on July 1, 2024 for the entire day'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a year on %1$s for the entire day',
|
|
|
|
|
'In %n year on %1$s for the entire day',
|
|
|
|
|
'In %n years on %1$s for the entire day',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024'],
|
|
|
|
|
@ -446,85 +446,85 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
],
|
|
|
|
|
// singular partial day
|
|
|
|
|
[
|
|
|
|
|
'In a minute on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n minute on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n minutes on %1$s between %2$s - %3$s',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
|
|
|
|
'In a minute on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
|
|
|
|
'In 1 minute on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a hour on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n hour on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n hours on %1$s between %2$s - %3$s',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
|
|
|
|
'In a hour on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
|
|
|
|
'In 1 hour on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n day on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n days on %1$s between %2$s - %3$s',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
|
|
|
|
'In a day on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
|
|
|
|
'In 1 day on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a week on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n week on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n weeks on %1$s between %2$s - %3$s',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
|
|
|
|
'In a week on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
|
|
|
|
'In 1 week on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a month on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n month on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n months on %1$s between %2$s - %3$s',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
|
|
|
|
'In a month on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
|
|
|
|
'In 1 month on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a year on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n year on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n years on %1$s between %2$s - %3$s',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
|
|
|
|
'In a year on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
|
|
|
|
'In 1 year on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
|
|
|
|
],
|
|
|
|
|
// plural partial day
|
|
|
|
|
[
|
|
|
|
|
'In a minute on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n minute on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n minutes on %1$s between %2$s - %3$s',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
|
|
|
|
'In 2 minutes on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a hour on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n hour on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n hours on %1$s between %2$s - %3$s',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
|
|
|
|
'In 2 hours on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n day on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n days on %1$s between %2$s - %3$s',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
|
|
|
|
'In 2 days on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a week on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n week on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n weeks on %1$s between %2$s - %3$s',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
|
|
|
|
'In 2 weeks on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a month on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n month on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n months on %1$s between %2$s - %3$s',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
|
|
|
|
'In 2 months on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a year on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n year on %1$s between %2$s - %3$s',
|
|
|
|
|
'In %n years on %1$s between %2$s - %3$s',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024', '8:00 AM', '9:00 AM (America/Toronto)'],
|
|
|
|
|
@ -607,7 +607,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$vCalendar = clone $this->vCalendar1a;
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a minute on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
|
|
|
|
'In 1 minute on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
|
|
|
|
$this->service->generateWhenString($eventReader)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@ -615,7 +615,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$vCalendar = clone $this->vCalendar2;
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a minute on July 1, 2024 for the entire day',
|
|
|
|
|
'In 1 minute on July 1, 2024 for the entire day',
|
|
|
|
|
$this->service->generateWhenString($eventReader)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@ -639,7 +639,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$vCalendar = clone $this->vCalendar1a;
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a hour on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
|
|
|
|
'In 1 hour on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
|
|
|
|
$this->service->generateWhenString($eventReader)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@ -647,7 +647,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$vCalendar = clone $this->vCalendar2;
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a hour on July 1, 2024 for the entire day',
|
|
|
|
|
'In 1 hour on July 1, 2024 for the entire day',
|
|
|
|
|
$this->service->generateWhenString($eventReader)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@ -673,7 +673,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
// test output
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a day on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
|
|
|
|
'In 1 day on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
|
|
|
|
$this->service->generateWhenString($eventReader)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@ -683,7 +683,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
// test output
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a day on July 1, 2024 for the entire day',
|
|
|
|
|
'In 1 day on July 1, 2024 for the entire day',
|
|
|
|
|
$this->service->generateWhenString($eventReader)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@ -713,7 +713,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
// test output
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a week on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
|
|
|
|
'In 1 week on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
|
|
|
|
$this->service->generateWhenString($eventReader)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@ -723,7 +723,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
// test output
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a week on July 1, 2024 for the entire day',
|
|
|
|
|
'In 1 week on July 1, 2024 for the entire day',
|
|
|
|
|
$this->service->generateWhenString($eventReader)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@ -753,7 +753,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
// test output
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a month on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
|
|
|
|
'In 1 month on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
|
|
|
|
$this->service->generateWhenString($eventReader)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@ -763,7 +763,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
// test output
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a month on July 1, 2024 for the entire day',
|
|
|
|
|
'In 1 month on July 1, 2024 for the entire day',
|
|
|
|
|
$this->service->generateWhenString($eventReader)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@ -793,7 +793,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
// test output
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a year on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
|
|
|
|
'In 1 year on July 1, 2024 between 8:00 AM - 9:00 AM (America/Toronto)',
|
|
|
|
|
$this->service->generateWhenString($eventReader)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@ -803,7 +803,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
// test output
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a year on July 1, 2024 for the entire day',
|
|
|
|
|
'In 1 year on July 1, 2024 for the entire day',
|
|
|
|
|
$this->service->generateWhenString($eventReader)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@ -1543,43 +1543,43 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$this->l10n->method('n')->willReturnMap([
|
|
|
|
|
// singular
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s',
|
|
|
|
|
'In %n day on %1$s',
|
|
|
|
|
'In %n days on %1$s',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024'],
|
|
|
|
|
'In a day on July 1, 2024'
|
|
|
|
|
'In 1 day on July 1, 2024'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s then on %2$s',
|
|
|
|
|
'In %n day on %1$s then on %2$s',
|
|
|
|
|
'In %n days on %1$s then on %2$s',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024', 'July 3, 2024'],
|
|
|
|
|
'In a day on July 1, 2024 then on July 3, 2024'
|
|
|
|
|
'In 1 day on July 1, 2024 then on July 3, 2024'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s then on %2$s and %3$s',
|
|
|
|
|
'In %n day on %1$s then on %2$s and %3$s',
|
|
|
|
|
'In %n days on %1$s then on %2$s and %3$s',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024', 'July 3, 2024', 'July 5, 2024'],
|
|
|
|
|
'In a day on July 1, 2024 then on July 3, 2024 and July 5, 2024'
|
|
|
|
|
'In 1 day on July 1, 2024 then on July 3, 2024 and July 5, 2024'
|
|
|
|
|
],
|
|
|
|
|
// plural
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s',
|
|
|
|
|
'In %n day on %1$s',
|
|
|
|
|
'In %n days on %1$s',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024'],
|
|
|
|
|
'In 2 days on July 1, 2024'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s then on %2$s',
|
|
|
|
|
'In %n day on %1$s then on %2$s',
|
|
|
|
|
'In %n days on %1$s then on %2$s',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024', 'July 3, 2024'],
|
|
|
|
|
'In 2 days on July 1, 2024 then on July 3, 2024'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s then on %2$s and %3$s',
|
|
|
|
|
'In %n day on %1$s then on %2$s and %3$s',
|
|
|
|
|
'In %n days on %1$s then on %2$s and %3$s',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024', 'July 3, 2024', 'July 5, 2024'],
|
|
|
|
|
@ -1610,7 +1610,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
// test output
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a day on July 1, 2024',
|
|
|
|
|
'In 1 day on July 1, 2024',
|
|
|
|
|
$this->service->generateOccurringString($eventReader)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@ -1621,7 +1621,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
// test output
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a day on July 1, 2024 then on July 3, 2024',
|
|
|
|
|
'In 1 day on July 1, 2024 then on July 3, 2024',
|
|
|
|
|
$this->service->generateOccurringString($eventReader)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@ -1632,7 +1632,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
// test output
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a day on July 1, 2024 then on July 3, 2024 and July 5, 2024',
|
|
|
|
|
'In 1 day on July 1, 2024 then on July 3, 2024 and July 5, 2024',
|
|
|
|
|
$this->service->generateOccurringString($eventReader)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
@ -1685,43 +1685,43 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$this->l10n->method('n')->willReturnMap([
|
|
|
|
|
// singular
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s',
|
|
|
|
|
'In %n day on %1$s',
|
|
|
|
|
'In %n days on %1$s',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024'],
|
|
|
|
|
'In a day on July 1, 2024'
|
|
|
|
|
'In 1 day on July 1, 2024'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s then on %2$s',
|
|
|
|
|
'In %n day on %1$s then on %2$s',
|
|
|
|
|
'In %n days on %1$s then on %2$s',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024', 'July 3, 2024'],
|
|
|
|
|
'In a day on July 1, 2024 then on July 3, 2024'
|
|
|
|
|
'In 1 day on July 1, 2024 then on July 3, 2024'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s then on %2$s and %3$s',
|
|
|
|
|
'In %n day on %1$s then on %2$s and %3$s',
|
|
|
|
|
'In %n days on %1$s then on %2$s and %3$s',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024', 'July 3, 2024', 'July 5, 2024'],
|
|
|
|
|
'In a day on July 1, 2024 then on July 3, 2024 and July 5, 2024'
|
|
|
|
|
'In 1 day on July 1, 2024 then on July 3, 2024 and July 5, 2024'
|
|
|
|
|
],
|
|
|
|
|
// plural
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s',
|
|
|
|
|
'In %n day on %1$s',
|
|
|
|
|
'In %n days on %1$s',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024'],
|
|
|
|
|
'In 2 days on July 1, 2024'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s then on %2$s',
|
|
|
|
|
'In %n day on %1$s then on %2$s',
|
|
|
|
|
'In %n days on %1$s then on %2$s',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024', 'July 3, 2024'],
|
|
|
|
|
'In 2 days on July 1, 2024 then on July 3, 2024'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s then on %2$s and %3$s',
|
|
|
|
|
'In %n day on %1$s then on %2$s and %3$s',
|
|
|
|
|
'In %n days on %1$s then on %2$s and %3$s',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024', 'July 3, 2024', 'July 5, 2024'],
|
|
|
|
|
@ -1752,7 +1752,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
// test output
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a day on July 1, 2024',
|
|
|
|
|
'In 1 day on July 1, 2024',
|
|
|
|
|
$this->service->generateOccurringString($eventReader),
|
|
|
|
|
'test patrial day recurring event in 1 day with single occurrence remaining'
|
|
|
|
|
);
|
|
|
|
|
@ -1764,7 +1764,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
// test output
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a day on July 1, 2024 then on July 3, 2024',
|
|
|
|
|
'In 1 day on July 1, 2024 then on July 3, 2024',
|
|
|
|
|
$this->service->generateOccurringString($eventReader),
|
|
|
|
|
'test patrial day recurring event in 1 day with two occurrences remaining'
|
|
|
|
|
);
|
|
|
|
|
@ -1776,7 +1776,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
// test output
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a day on July 1, 2024 then on July 3, 2024 and July 5, 2024',
|
|
|
|
|
'In 1 day on July 1, 2024 then on July 3, 2024 and July 5, 2024',
|
|
|
|
|
$this->service->generateOccurringString($eventReader),
|
|
|
|
|
''
|
|
|
|
|
);
|
|
|
|
|
@ -1836,43 +1836,43 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$this->l10n->method('n')->willReturnMap([
|
|
|
|
|
// singular
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s',
|
|
|
|
|
'In %n day on %1$s',
|
|
|
|
|
'In %n days on %1$s',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024'],
|
|
|
|
|
'In a day on July 1, 2024'
|
|
|
|
|
'In 1 day on July 1, 2024'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s then on %2$s',
|
|
|
|
|
'In %n day on %1$s then on %2$s',
|
|
|
|
|
'In %n days on %1$s then on %2$s',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024', 'July 5, 2024'],
|
|
|
|
|
'In a day on July 1, 2024 then on July 5, 2024'
|
|
|
|
|
'In 1 day on July 1, 2024 then on July 5, 2024'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s then on %2$s and %3$s',
|
|
|
|
|
'In %n day on %1$s then on %2$s and %3$s',
|
|
|
|
|
'In %n days on %1$s then on %2$s and %3$s',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024', 'July 5, 2024', 'July 7, 2024'],
|
|
|
|
|
'In a day on July 1, 2024 then on July 5, 2024 and July 7, 2024'
|
|
|
|
|
'In 1 day on July 1, 2024 then on July 5, 2024 and July 7, 2024'
|
|
|
|
|
],
|
|
|
|
|
// plural
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s',
|
|
|
|
|
'In %n day on %1$s',
|
|
|
|
|
'In %n days on %1$s',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024'],
|
|
|
|
|
'In 2 days on July 1, 2024'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s then on %2$s',
|
|
|
|
|
'In %n day on %1$s then on %2$s',
|
|
|
|
|
'In %n days on %1$s then on %2$s',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024', 'July 5, 2024'],
|
|
|
|
|
'In 2 days on July 1, 2024 then on July 5, 2024'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s then on %2$s and %3$s',
|
|
|
|
|
'In %n day on %1$s then on %2$s and %3$s',
|
|
|
|
|
'In %n days on %1$s then on %2$s and %3$s',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024', 'July 5, 2024', 'July 7, 2024'],
|
|
|
|
|
@ -1908,7 +1908,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
// test output
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a day on July 1, 2024',
|
|
|
|
|
'In 1 day on July 1, 2024',
|
|
|
|
|
$this->service->generateOccurringString($eventReader),
|
|
|
|
|
'test patrial day recurring event in 1 day with single occurrence remaining and one exception'
|
|
|
|
|
);
|
|
|
|
|
@ -1921,7 +1921,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
// test output
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a day on July 1, 2024',
|
|
|
|
|
'In 1 day on July 1, 2024',
|
|
|
|
|
$this->service->generateOccurringString($eventReader),
|
|
|
|
|
'test patrial day recurring event in 1 day with two occurrences remaining and one exception'
|
|
|
|
|
);
|
|
|
|
|
@ -1934,7 +1934,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
// test output
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a day on July 1, 2024 then on July 5, 2024',
|
|
|
|
|
'In 1 day on July 1, 2024 then on July 5, 2024',
|
|
|
|
|
$this->service->generateOccurringString($eventReader),
|
|
|
|
|
'test patrial day recurring event in 1 day with three occurrences remaining and one exception'
|
|
|
|
|
);
|
|
|
|
|
@ -1947,7 +1947,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
// test output
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a day on July 1, 2024 then on July 5, 2024 and July 7, 2024',
|
|
|
|
|
'In 1 day on July 1, 2024 then on July 5, 2024 and July 7, 2024',
|
|
|
|
|
$this->service->generateOccurringString($eventReader),
|
|
|
|
|
'test patrial day recurring event in 1 day with four occurrences remaining and one exception'
|
|
|
|
|
);
|
|
|
|
|
@ -2020,43 +2020,43 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$this->l10n->method('n')->willReturnMap([
|
|
|
|
|
// singular
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s',
|
|
|
|
|
'In %n day on %1$s',
|
|
|
|
|
'In %n days on %1$s',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024'],
|
|
|
|
|
'In a day on July 1, 2024'
|
|
|
|
|
'In 1 day on July 1, 2024'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s then on %2$s',
|
|
|
|
|
'In %n day on %1$s then on %2$s',
|
|
|
|
|
'In %n days on %1$s then on %2$s',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024', 'July 5, 2024'],
|
|
|
|
|
'In a day on July 1, 2024 then on July 5, 2024'
|
|
|
|
|
'In 1 day on July 1, 2024 then on July 5, 2024'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s then on %2$s and %3$s',
|
|
|
|
|
'In %n day on %1$s then on %2$s and %3$s',
|
|
|
|
|
'In %n days on %1$s then on %2$s and %3$s',
|
|
|
|
|
1,
|
|
|
|
|
['July 1, 2024', 'July 5, 2024', 'July 9, 2024'],
|
|
|
|
|
'In a day on July 1, 2024 then on July 5, 2024 and July 9, 2024'
|
|
|
|
|
'In 1 day on July 1, 2024 then on July 5, 2024 and July 9, 2024'
|
|
|
|
|
],
|
|
|
|
|
// plural
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s',
|
|
|
|
|
'In %n day on %1$s',
|
|
|
|
|
'In %n days on %1$s',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024'],
|
|
|
|
|
'In 2 days on July 1, 2024'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s then on %2$s',
|
|
|
|
|
'In %n day on %1$s then on %2$s',
|
|
|
|
|
'In %n days on %1$s then on %2$s',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024', 'July 5, 2024'],
|
|
|
|
|
'In 2 days on July 1, 2024 then on July 5, 2024'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'In a day on %1$s then on %2$s and %3$s',
|
|
|
|
|
'In %n day on %1$s then on %2$s and %3$s',
|
|
|
|
|
'In %n days on %1$s then on %2$s and %3$s',
|
|
|
|
|
2,
|
|
|
|
|
['July 1, 2024', 'July 5, 2024', 'July 9, 2024'],
|
|
|
|
|
@ -2093,7 +2093,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
// test output
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a day on July 1, 2024',
|
|
|
|
|
'In 1 day on July 1, 2024',
|
|
|
|
|
$this->service->generateOccurringString($eventReader),
|
|
|
|
|
'test patrial day recurring event in 1 day with single occurrence remaining and two exception'
|
|
|
|
|
);
|
|
|
|
|
@ -2107,7 +2107,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
// test output
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a day on July 1, 2024',
|
|
|
|
|
'In 1 day on July 1, 2024',
|
|
|
|
|
$this->service->generateOccurringString($eventReader),
|
|
|
|
|
'test patrial day recurring event in 1 day with two occurrences remaining and two exception'
|
|
|
|
|
);
|
|
|
|
|
@ -2121,7 +2121,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
// test output
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a day on July 1, 2024 then on July 5, 2024',
|
|
|
|
|
'In 1 day on July 1, 2024 then on July 5, 2024',
|
|
|
|
|
$this->service->generateOccurringString($eventReader),
|
|
|
|
|
'test patrial day recurring event in 1 day with three occurrences remaining and two exception'
|
|
|
|
|
);
|
|
|
|
|
@ -2135,7 +2135,7 @@ class IMipServiceTest extends TestCase {
|
|
|
|
|
$eventReader = new EventReader($vCalendar, $vCalendar->VEVENT[0]->UID->getValue());
|
|
|
|
|
// test output
|
|
|
|
|
$this->assertEquals(
|
|
|
|
|
'In a day on July 1, 2024 then on July 5, 2024 and July 9, 2024',
|
|
|
|
|
'In 1 day on July 1, 2024 then on July 5, 2024 and July 9, 2024',
|
|
|
|
|
$this->service->generateOccurringString($eventReader),
|
|
|
|
|
'test patrial day recurring event in 1 day with four occurrences remaining and two exception'
|
|
|
|
|
);
|
|
|
|
|
|