Пример #1
0
 /**
  * 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());
 }
Пример #2
0
 /**
  * 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());
 }