public function testSetGetFooterLines() { $data = [['text' => 'some text', 'position' => 'center', 'font' => ['family' => 'Helvetica', 'weight' => 'normal']]]; $this->model->setFooterLines($data); $this->assertInstanceOf('UthandoDomPdf\\Model\\PdfFooterCollection', $this->model->getFooterLines()); $this->setExpectedException('Zend\\Stdlib\\Exception\\InvalidArgumentException'); $this->model->setFooterLines('invailid data'); $this->fail('Expected exception "Zend\\Stdlib\\Exception\\InvalidArgumentException" not thrown'); }