public function test_ign__toRtf() { $this->_object->setSymbol('*'); $this->assertSame('\\*', $this->_object->__toRtf()); }
protected function parseControlSymbol() { // Read symbol (one character only). $this->getChar(); $symbol = $this->char; if ($symbol === '\'') { // Symbols ordinarily have no parameter. However, // if this is \', then it is followed by a 2-digit hex-code: $this->getChar(); $parameter = $this->char; $this->getChar(); $parameter .= $this->char; $rtfsymbol = new RtfHexaControlSymbol(); $rtfsymbol->setSymbol($symbol); $rtfsymbol->setValueFromHex($parameter); $this->group->children[] = $rtfsymbol; } else { $rtfsymbol = new RtfControlSymbol(); $rtfsymbol->setSymbol($symbol); $this->group->children[] = $rtfsymbol; } }