public function execute()
 {
     $s = new Stringizer(preg_replace("/[[:space:]]+/", " ", $this->getValue()));
     return $s->trim()->getString();
 }
示例#2
0
 public function testTrimNohtingtoTrim()
 {
     $s = new Stringizer("キラキラしたfizzخالد الشمعة");
     $this->assertEquals("キラキラしたfizzخالد الشمعة", $s->trim());
 }
示例#3
0
 public function testChaining()
 {
     $s = new Stringizer("Stringizer   ");
     $this->assertEquals("Stringizer", $s->trim()->base64Encode()->base64Decode());
 }