|
|
|
@ -44,6 +44,8 @@ class InflectorTest extends TestCase
|
|
|
|
|
'car' => 'cars', |
|
|
|
|
'netherlands' => 'netherlands', |
|
|
|
|
'currency' => 'currencies', |
|
|
|
|
'software' => 'software', |
|
|
|
|
'hardware' => 'hardware', |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
foreach ($testData as $testIn => $testOut) { |
|
|
|
@ -73,6 +75,8 @@ class InflectorTest extends TestCase
|
|
|
|
|
'cars' => 'car', |
|
|
|
|
'Netherlands' => 'Netherlands', |
|
|
|
|
'currencies' => 'currency', |
|
|
|
|
'software' => 'software', |
|
|
|
|
'hardware' => 'hardware', |
|
|
|
|
]; |
|
|
|
|
foreach ($testData as $testIn => $testOut) { |
|
|
|
|
$this->assertEquals($testOut, Inflector::singularize($testIn)); |
|
|
|
|