Example #1
0
 /**
  * @testdox getURLNodes() returns all nodes that normally contain a URL
  */
 public function testGetURLNodes()
 {
     $template = new Template('<a href="{@foo}">...</a>');
     $nodes = $template->getURLNodes();
     $this->assertSame(1, count($nodes));
     $this->assertSame('{@foo}', $nodes[0]->value);
 }