public function testAddTo() { $c1 = new NodeCollection([StringNode::fromValue('foo')]); $c2 = new NodeCollection([IntegerNode::fromValue(30)]); $union = $c1->addTo($c2); $this->assertCount(2, $union); $this->assertSame($union, $c2); }
public function testAddTo() { $c1 = new NodeCollection([StringNode::fromValue('foo')]); $c2 = new NodeCollection([IntegerNode::fromValue(30)]); $union = $c1->addTo($c2); $this->assertCount(2, $union); $this->assertSame($union, $c2); }