| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function testFormingWithProtectedField() |
||
| 21 | { |
||
| 22 | $object = new XmlWithProtectedField('object'); |
||
| 23 | $document = new \DOMDocument; |
||
| 24 | $document->appendChild($object->toXml($document)); |
||
| 25 | $string = $document->saveXML(); |
||
| 26 | |||
| 27 | $this->assertEquals( |
||
| 28 | "<?xml version=\"1.0\"?>\n<XmlWithProtectedField protectedField=\"{$object->getProtectedField()}\"/>\n", |
||
| 29 | $string |
||
| 30 | ); |
||
| 31 | } |
||
| 32 | } |