assertSame($words, number_words($number)); } public function testNumericStringsAreAccepted(): void { $this->assertSame('forty-two', number_words('42')); } // The pager shows between 1 and MAX_SHOW stories public function testEveryPageSizeHasWords(): void { for ($n = 1; $n <= MAX_SHOW; $n++) $this->assertMatchesRegularExpression('/^[a-z]+(-[a-z]+)?$/', number_words($n), "for $n"); } }