예제 #1
0
 public function testUcwords()
 {
     $this->eq(s::ucwords('alpha beta gamma'), 'Alpha Beta Gamma');
     $this->eq(s::ucwords(''), '');
     $this->eq(s::capitalizeWords('alpha beta gamma'), 'Alpha Beta Gamma');
 }
예제 #2
0
 public function capitalizeWords()
 {
     return new self(s::capitalizeWords($this->value));
 }