vendor/ensepar/html2pdf-bundle/Ensepar/Html2pdfBundle/Tests/Functional/FunctionalTest.php
/**
     * We make sure multiple calls are OK.
     *
     * @see https://github.com/OwlyCode/EnseparHtml2pdfBundle/issues/12
     */
We make sure multiple calls are OK.
We make sure multiple calls are OK .
public function testMultipleCalls()
    {
        $client = self::createClient();
        $factory = $client->getContainer()->get('html2pdf_factory');
        $pdf1 = $factory->create();
        $pdf1->writeHTML("<html><body><p>foo</p></body></html>");
        $pdf2 = $factory->create();
        $pdf2->writeHTML("<html><body><p>foo</p></body></html>");
        $this->assertSame($pdf1->Output('my.pdf', 'S'), $pdf2->Output('my.pdf', 'S'));
    }
public function testMultipleCalls ( ) { $ client = self :: createClient ( ) ; $ factory = $ client -> getContainer ( ) -> get ( 'html2pdf_factory' ) ; $ pdf1 = $ factory -> create ( ) ; $ pdf1 -> writeHTML ( " <html><body><p>foo</p></body></html> " ) ; $ pdf2 = $ factory -> create ( ) ; $ pdf2 -> writeHTML ( " <html><body><p>foo</p></body></html> " ) ; $ this -> assertSame ( $ pdf1 -> Output ( 'my.pdf' , 'S' ) , $ pdf2 -> Output ( 'my.pdf' , 'S' ) ) ; }
We make sure multiple calls are OK.
 @see https://github.com/OwlyCode/EnseparHtml2pdfBundle/issues/12
We make sure multiple calls are OK . @see https : // github . com / OwlyCode / EnseparHtml2pdfBundle / issues / 12