PopTest\Pdf\PageTest::testToString PHP Method

testToString() public method

public testToString ( )
    public function testToString()
    {
        $p = new Page(null, 'Letter', null, null, 5);
        $p = new Page(null, null, 612, 792, 5);
        $this->assertContains('MediaBox[0 0 612 792]', (string) $p);
        $p = new Page("5 0 obj\n<</Type/Page/Parent 2 0 R/MediaBox[0 0 612 792]/Contents[ 0 R]/Resources<</ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>>>\nendobj\n>>");
        $this->assertContains('MediaBox[0 0 612 792]', (string) $p);
    }