Bad unit test... need to actually set the UTF-8 flag in BSXml::Parse()
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 18 Feb 2007 06:26:04 +0000 (06:26 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 18 Feb 2007 06:26:04 +0000 (06:26 +0000)
docs/UnitTest/XmlTest.php

index c923581ccc6f9c763379cfc3a7c9fd12cec22ea6..ab348c4195515902755c62e3fc8efebc32507180 100644 (file)
@@ -64,7 +64,7 @@ class XmlTest extends UnitTestCase
        public function testUtf8Xml()
        {
                $xml = '<root><utf8>test: π</utf8></root>';
-               $array = BSXml::Parse($xml);
+               $array = BSXml::Parse($xml, true);
                $this->assertEqual($array['root']['utf8']['value'], 'test: π');
        }
 }