/** * 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); }
public function remove_returns_null_when_element_does_not_exist() { $fixture = new NodeList(); $fixture->add(new Text('Test')); $this->assertNull($fixture->remove(1)); }
/** * 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); }