WpWodify\Settings::humanize
Takes a machine string, and makes it more human friendly.
Signature
protected function humanize(string
$string )
Parameters
$string
—
string
- The machine string.
Returns
- string
- The human string.
Test Coverage
Information
- Coverage: 6/6 Lines (100%)
- Tests: 6
- Passed: 6 (100%)
Tests
- [ PASSED ] — WpWodify\SettingsTest::test_humanize with data set "dash test"
- [ PASSED ] — WpWodify\SettingsTest::test_humanize with data set "dash test with leading dashes"
- [ PASSED ] — WpWodify\SettingsTest::test_humanize with data set "dash test with trailing dashes"
- [ PASSED ] — WpWodify\SettingsTest::test_humanize with data set "underscore test"
- [ PASSED ] — WpWodify\SettingsTest::test_humanize with data set "underscore test with leading underscores"
- [ PASSED ] — WpWodify\SettingsTest::test_humanize with data set "underscore test with trailing underscores"