1
0
mirror of https://github.com/danielstjules/Stringy.git synced 2025-08-15 01:34:03 +02:00

Add public delimit() function

This commit is contained in:
Daniel St. Jules
2015-07-01 19:25:35 -07:00
parent 397d2ca2f8
commit 7763df3c3b
5 changed files with 74 additions and 6 deletions

View File

@@ -145,6 +145,26 @@ abstract class CommonTest extends PHPUnit_Framework_TestCase
);
}
public function delimitProvider()
{
return array(
array('test*case', 'testCase', '*'),
array('test&case', 'Test-Case', '&'),
array('test#case', 'test case', '#'),
array('test**case', 'test -case', '**'),
array('~!~test~!~case', '-test - case', '~!~'),
array('test*case', 'test_case', '*'),
array('test%c%test', ' test c test', '%'),
array('test+u+case', 'TestUCase', '+'),
array('test=c=c=test', 'TestCCTest', '='),
array('string#>with1number', 'string_with1number', '#>'),
array('1test2case', '1test2case', '*'),
array('test ύα σase', 'test Σase', ' ύα ', 'UTF-8',),
array('στανιλαcase', 'Στανιλ case', 'α', 'UTF-8',),
array('σashΘcase', 'Σash Case', 'Θ', 'UTF-8')
);
}
public function swapCaseProvider()
{
return array(