Source of file ClassToCamelcase.php
Size: 1,025 Bytes - Last Modified: 2015-12-22T09:12:14-05:00
../src/Filter/ClassToCamelcase.php
123456789101112131415161718192021222324252627282930313233
Covered by 7 test(s):
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #0
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #1
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #2
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #3
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #4
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #5
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #6
34
Covered by 7 test(s):
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #0
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #1
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #2
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #3
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #4
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #5
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #6
3536
Covered by 7 test(s):
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #0
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #1
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #2
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #3
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #4
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #5
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #6
3738
Covered by 7 test(s):
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #0
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #1
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #2
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #3
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #4
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #5
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #6
39
Covered by 7 test(s):
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #0
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #1
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #2
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #3
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #4
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #5
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #6
40
Covered by 7 test(s):
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #0
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #1
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #2
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #3
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #4
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #5
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #6
41
Covered by 7 test(s):
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #0
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #1
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #2
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #3
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #4
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #5
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #6
4243
Covered by 7 test(s):
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #0
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #1
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #2
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #3
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #4
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #5
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #6
44
Covered by 7 test(s):
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #0
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #1
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #2
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #3
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #4
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #5
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #6
45
Covered by 7 test(s):
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #0
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #1
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #2
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #3
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #4
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #5
- MvcLite\FilterClassToCamelcaseTest::testFilter with data set #6
464748 |
namespace MvcLite\Filter;
use MvcLite\FilterAbstract as FilterAbstract;
class ClassToCamelcase extends FilterAbstract public function filter($word = '') $words = explode('_', $word);
for ($i = 0; $i < strlen($word); $i++) { $result .= strtolower($word{$i});
|