1
0
mirror of https://github.com/danielstjules/Stringy.git synced 2025-08-06 21:36:31 +02:00

Add casetitle function

This commit is contained in:
Lucas Michot
2014-09-14 14:16:09 +02:00
parent 90de5cca00
commit 681463de87
4 changed files with 45 additions and 0 deletions

View File

@@ -244,6 +244,16 @@ class StaticStringyTestCase extends CommonTest
$this->assertEquals($expected, $result);
}
/**
* @dataProvider toCaseTitleProvider()
*/
public function testToCaseTitle($expected, $str, $encoding = null)
{
$result = S::toCaseTitle($str, $encoding);
$this->assertInternalType('string', $result);
$this->assertEquals($expected, $result);
}
/**
* @dataProvider toUpperCaseProvider()
*/