Example #1
0
 /**
  * Returns whether a given comparison value is equal to this parse tree
  *
  * @param  var $cmp
  * @return string
  */
 public function equals($cmp)
 {
     return parent::equals($cmp) && Objects::equal($this->urls, $cmp->urls);
 }
Example #2
0
 public function remove_returns_null_when_element_does_not_exist()
 {
     $fixture = new NodeList();
     $fixture->add(new Text('Test'));
     $this->assertNull($fixture->remove(1));
 }
Example #3
0
 /**
  * Creates a new list
  *
  * @param  string $type either "th" or "td"
  * @param  string $alignment
  * @param  net.daringfireball.markdown.Node[] $nodes
  */
 public function __construct($type, $alignment, $nodes = [])
 {
     $this->type = $type;
     $this->alignment = $alignment;
     parent::__construct($nodes);
 }