/** * Test for Inflector::ordinalize() * * @test */ public function test_ordinalize_of_string() { $this->assertEquals('Foo', Inflector::ordinalize('Foo')); }
public function test_ordinalize() { foreach (require __DIR__ . '/cases/ordinal_numbers.php' as $number => $ordinalized) { $this->assertEquals($ordinalized, self::$inflector->ordinalize($number)); } }