'just:some.svg', 'title' => 'test', 'align' => 'left', 'width' => 400, 'height' => 500, 'cache' => 'cache' ), 5, // pos? $source ) ), array('cdata', array(null)), array('p_close', array()), array('document_end', array()), ); $this->assertEquals($calls, array_map('stripbyteindex', $parser_response)); } public function test_svgsize() { /** @var helper_plugin_svgpureinsert $hlp */ $hlp = plugin_load('helper', 'svgpureinsert'); $dimension = $hlp->readSVGsize(__DIR__.'/svglogo.svg'); $this->assertEquals(array(300, 300), $dimension); $dimension = $hlp->readSVGsize(__DIR__.'/dokuwiki.svg'); $this->assertEquals(array(745, 1053), $dimension); } }