Changeset 833
- Timestamp:
- 08/14/07 22:54:19 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/test/php/net/stubbles/xml/stubDomXMLStreamWriterTestCase.php
r597 r833 166 166 $this->assertEqual('<?xml version="1.0" encoding="ISO-8859-1"?>', $writer->asXML()); 167 167 } 168 168 169 169 /** 170 170 * Test the hasFeature() method … … 174 174 $this->assertTrue($writer->hasFeature(stubXMLStreamWriter::FEATURE_AS_DOM)); 175 175 $this->assertTrue($writer->hasFeature(stubXMLStreamWriter::FEATURE_IMPORT_WRITER)); 176 } 176 } 177 178 /** 179 * Test writing an invalid fragment 180 */ 181 public function testFragmentException() { 182 $this->expectException('stubXMLException'); 183 $writer = new stubDomXMLStreamWriter(); 184 $writer->writeStartElement('root'); 185 $writer->writeXmlFragment('<foo>'); 186 $writer->writeEndElement(); 187 } 177 188 } 178 189 ?>
