public function testIsChainable() { $node = new SimpleDOM('<node />'); $return = $node->setAttribute('a', 'aval'); $this->assertEquals($node, $return); $this->assertTrue(dom_import_simplexml($node)->isSameNode(dom_import_simplexml($return))); }