/** * Test encoding settings */ public function testSetGetEncoding() { $this->assertEquals('UTF-8', $this->_request->getEncoding()); $this->assertEquals('UTF-8', AbstractValue::getGenerator()->getEncoding()); $this->assertSame($this->_request, $this->_request->setEncoding('ISO-8859-1')); $this->assertEquals('ISO-8859-1', $this->_request->getEncoding()); $this->assertEquals('ISO-8859-1', AbstractValue::getGenerator()->getEncoding()); }
/** * Test encoding settings */ public function testSetGetEncoding() { $this->assertEquals('UTF-8', $this->_request->getEncoding()); $this->_request->setEncoding('ISO-8859-1'); $this->assertEquals('ISO-8859-1', $this->_request->getEncoding()); }