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