public function testSettingNamespacedAttributeValueWithEntitiesAndKeepEntitiesEnabledDoesNotEncode() { $attr = $this->node->setAttributeNS('test:uri', 't:test', '&', true); $this->assertTrue($this->node->hasAttributeNS('test:uri', 'test')); $this->assertInstanceOf('DOMAttr', $attr); $this->assertEquals('&', $this->node->getAttributeNS('test:uri', 'test')); }