/** * Setting Blocksize * * @return void */ public function testGetSetBlocksize() { $filter = new CompressFilter('bz2'); $this->assertEquals(4, $filter->getBlocksize()); $filter->setBlocksize(6); $this->assertEquals(6, $filter->getOptions('blocksize')); $this->setExpectedException('\\Zend\\Filter\\Exception\\InvalidArgumentException', 'must be between'); $filter->setBlocksize(15); }
/** * Setting Blocksize * * @return void */ public function testGetSetBlocksize() { $filter = new CompressFilter('bz2'); $this->assertEquals(4, $filter->getBlocksize()); $filter->setBlocksize(6); $this->assertEquals(6, $filter->getOptions('blocksize')); try { $filter->setBlocksize(15); $this->fail('Exception expected'); } catch (\Zend\Filter\Exception $e) { $this->assertContains('must be between', $e->getMessage()); } }