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