|
|
@@ -255,11 +255,11 @@ class InflectorTest extends TestCase
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * testInflectorSlug method
|
|
|
+ * testSlug method
|
|
|
*
|
|
|
* @return void
|
|
|
*/
|
|
|
- public function testInflectorSlug()
|
|
|
+ public function testSlug()
|
|
|
{
|
|
|
$result = Inflector::slug('Foo Bar: Not just for breakfast any-more');
|
|
|
$expected = 'Foo-Bar-Not-just-for-breakfast-any-more';
|
|
|
@@ -326,7 +326,7 @@ class InflectorTest extends TestCase
|
|
|
*
|
|
|
* @return void
|
|
|
*/
|
|
|
- public function testInflectorSlugCharList()
|
|
|
+ public function testSlugCharList()
|
|
|
{
|
|
|
foreach (self::$maps as $language => $list) {
|
|
|
foreach ($list as $from => $to) {
|
|
|
@@ -337,11 +337,11 @@ class InflectorTest extends TestCase
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * testInflectorSlugWithMap method
|
|
|
+ * testSlugWithMap method
|
|
|
*
|
|
|
* @return void
|
|
|
*/
|
|
|
- public function testInflectorSlugWithMap()
|
|
|
+ public function testSlugWithMap()
|
|
|
{
|
|
|
Inflector::rules('transliteration', ['r' => '1']);
|
|
|
$result = Inflector::slug('replace every r');
|
|
|
@@ -354,11 +354,11 @@ class InflectorTest extends TestCase
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * testInflectorSlugWithMapOverridingDefault method
|
|
|
+ * testSlugWithMapOverridingDefault method
|
|
|
*
|
|
|
* @return void
|
|
|
*/
|
|
|
- public function testInflectorSlugWithMapOverridingDefault()
|
|
|
+ public function testSlugWithMapOverridingDefault()
|
|
|
{
|
|
|
Inflector::rules('transliteration', ['å' => 'aa', 'ø' => 'oe']);
|
|
|
$result = Inflector::slug('Testing æ ø å', '-');
|
|
|
@@ -367,11 +367,11 @@ class InflectorTest extends TestCase
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * testInflectorUnderscore method
|
|
|
+ * testUnderscore method
|
|
|
*
|
|
|
* @return void
|
|
|
*/
|
|
|
- public function testInflectorUnderscore()
|
|
|
+ public function testUnderscore()
|
|
|
{
|
|
|
$this->assertSame('test_thing', Inflector::underscore('TestThing'));
|
|
|
$this->assertSame('test_thing', Inflector::underscore('testThing'));
|