Ejemplo n.º 1
0
 public function finalize(Document &$document)
 {
     if ($this->slide) {
         $document->addNode(new RawNode('</div>'));
     }
 }
Ejemplo n.º 2
0
 /**
  * Asserts that a document has nodes that satisfy the function
  */
 private function assertNotHasNode(Document $document, $function)
 {
     $nodes = $document->getNodes($function);
     $this->assertEmpty($nodes);
 }