Example #1
0
 public function testBadEndianValue()
 {
     $this->setExpectedException('GeoIO\\WKB\\Parser\\Exception\\ParserException', 'Parsing failed: Bad endian byte value 3.');
     $parser = new Parser(Mockery::mock('GeoIO\\Factory')->shouldIgnoreMissing());
     $parser->parse('03010000003D0AD7A3701D41400000000000C055C0');
 }
Example #2
0
 public static function fromWKB($wkb)
 {
     $parser = new Parser(new Factory());
     return $parser->parse($wkb);
 }