/** */ public function testControlCharacters() { $this->assertEquals('', Text::controlCharacterPHP2OOXML()); $this->assertEquals('aeiou', Text::controlCharacterPHP2OOXML('aeiou')); $this->assertEquals('àéîöù', Text::controlCharacterPHP2OOXML('àéîöù')); $value = rand(0, 8); $this->assertEquals('_x' . sprintf('%04s', strtoupper(dechex($value))) . '_', Text::controlCharacterPHP2OOXML(chr($value))); $this->assertEquals('', Text::controlCharacterOOXML2PHP('')); $this->assertEquals(chr(0x8), Text::controlCharacterOOXML2PHP('_x0008_')); }