obj = new HTMLPurifier_ChildDef_Table(); $this->assertResult('', false); // we're using empty tags to compact the tests: under real circumstances // there would be contents in them $this->assertResult(''); $this->assertResult(''. 'asdf'); $this->assertResult(''); // mixed up order $this->assertResult( '1', '1'); // duplicates of singles // - first caption serves // - trailing tfoots/theads get turned into tbodys $this->assertResult( '11', '11' ); // errant text dropped (until bubbling is implemented) $this->assertResult('foo', false); // whitespace sticks to the previous element, last whitespace is // stationary $this->assertResult("\n \n \n ", true, array('Output.Newline' => "\n")); $this->assertResult( "\n\t\n\t\t\n\t\t\t", "\n\t\t\n\t\n\t\t\t", array('Output.Newline' => "\n") ); } } ?>