Example #1
0
 /**
  * @param int $minute
  */
 public function stringifyMinute($minute)
 {
     $result = [];
     $numberStringifier = new NumberStringifier();
     $pluralizer = new Pluralizer();
     $minuteString = $numberStringifier->stringify($minute, $this->minuteGender);
     $result[] = $minuteString;
     $result[] = $pluralizer->make($minute, $this->minutePluralization);
     return join(' ', $result);
 }
 /**
  * @dataProvider numbersDataProvider
  */
 public function testStringify($hour, $expectedResult)
 {
     $actualResult = $this->stringifier->stringify($hour);
     $this->assertEquals($expectedResult, $actualResult);
 }