/**
  * @dataProvider providerToWords
  */
 public function testToWords($expectedValue, Number $number)
 {
     $this->assertEquals($expectedValue, $this->transformer->toWords($number));
 }
 /**
  * Convert number to words with grammar cased subject
  *
  * @param Number $number
  * @param array  $subject
  *
  * @return string
  */
 protected function toWordsWithGrammarCasedDescription(Number $number, array $subject)
 {
     $convertedNumber = $this->numberTransformer->toWords($number);
     $grammarCase = $this->grammarCaseSelector->getGrammarCase($number->getUnits());
     return $convertedNumber . ' ' . $subject[$grammarCase];
 }