Example #1
0
 public function testDefaultCharsets()
 {
     $this->assertNull($this->object->getCharset(Communicator::CHARSET_REMOTE));
     $this->assertNull($this->object->getCharset(Communicator::CHARSET_LOCAL));
     $this->assertEquals(array(Communicator::CHARSET_REMOTE => null, Communicator::CHARSET_LOCAL => null), $this->object->getCharset(Communicator::CHARSET_ALL));
     $this->assertEquals(array(Communicator::CHARSET_REMOTE => null, Communicator::CHARSET_LOCAL => null), Communicator::getDefaultCharset(Communicator::CHARSET_ALL));
     $this->assertNull(Communicator::getDefaultCharset(Communicator::CHARSET_REMOTE));
     $this->assertNull(Communicator::getDefaultCharset(Communicator::CHARSET_LOCAL));
 }