Also computes map between UTF-8 and this encoding if necessary, using the iconv library.
Beispiel #1
0
 public function testDataCannotEncode()
 {
     $this->setExpectedException('\\InvalidArgumentException');
     $cp = new CodePage("foo", array("name" => "foo"));
     $this->assertFalse($cp->isEncodable());
     $cp->getData();
 }