public function testDump() { $factory = new Zend_Pdf_ElementFactory(1); $obj = new Zend_Pdf_Element_Object_Stream('some data', 55, 3, $factory); $this->assertEquals($obj->dump($factory), "55 3 obj \n<</Length 9 >>\nstream\nsome data\nendstream\nendobj\n"); }