예제 #1
0
 public function testContextAdd()
 {
     $node = new TextNode('foo');
     $node_with_context = $node->withContext(new Context('bar'));
     $this->assertEquals(new TextNode('foo', new Context('bar')), $node_with_context);
 }