@@ -175,9 +175,15 @@ public function testExportMethods(): void
175175
176176 $ svg = $ type ->setBackgroundColor ('yellow ' )->getSvgCode ();
177177 $ expected = '<?xml version="1.0" standalone="no" ?>
178- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
179- <svg width="44.000000" height="8.000000" '
180- . ' viewBox="0 0 44.000000 8.000000" version="1.1" xmlns="http://www.w3.org/2000/svg">
178+ <svg '
179+ . ' version="1.2" '
180+ . ' baseProfile="full" '
181+ . ' xmlns="http://www.w3.org/2000/svg" '
182+ . ' xmlns:xlink="http://www.w3.org/1999/xlink" '
183+ . ' xmlns:ev="http://www.w3.org/2001/xml-events" '
184+ . ' width="44.000000" '
185+ . ' height="8.000000" '
186+ . ' viewBox="0 0 44.000000 8.000000">
181187 <desc>01001100011100001111,10110011100011110000</desc>
182188 <rect x="0" y="0" width="44.000000" height="8.000000" fill="#ffff00" '
183189 . ' stroke="none" stroke-width="0" stroke-linecap="square" />
@@ -306,10 +312,10 @@ public function testGetSvg(): void
306312 $ type ->getSvg ();
307313 $ svg = ob_get_clean ();
308314 $ this ->assertNotFalse ($ svg );
309- $ this ->assertEquals ('86e0362768e8b1b26032381232c0367f ' , md5 ($ svg ));
315+ $ this ->assertEquals ('114f33435c265345f7c6cdf673922292 ' , md5 ($ svg ));
310316 $ headers = xdebug_get_headers ();
311317 $ this ->assertEquals (
312- 'Content-Disposition: inline; filename="86e0362768e8b1b26032381232c0367f .svg"; ' ,
318+ 'Content-Disposition: inline; filename="114f33435c265345f7c6cdf673922292 .svg"; ' ,
313319 $ headers [5 ]
314320 );
315321
@@ -318,10 +324,10 @@ public function testGetSvg(): void
318324 $ type ->getSvg ('#~ ' );
319325 $ svg = ob_get_clean ();
320326 $ this ->assertNotFalse ($ svg );
321- $ this ->assertEquals ('86e0362768e8b1b26032381232c0367f ' , md5 ($ svg ));
327+ $ this ->assertEquals ('114f33435c265345f7c6cdf673922292 ' , md5 ($ svg ));
322328 $ headers = xdebug_get_headers ();
323329 $ this ->assertEquals (
324- 'Content-Disposition: inline; filename="86e0362768e8b1b26032381232c0367f .svg"; ' ,
330+ 'Content-Disposition: inline; filename="114f33435c265345f7c6cdf673922292 .svg"; ' ,
325331 $ headers [5 ]
326332 );
327333
@@ -330,7 +336,7 @@ public function testGetSvg(): void
330336 $ type ->getSvg ('test_SVG_filename-001 ' );
331337 $ svg = ob_get_clean ();
332338 $ this ->assertNotFalse ($ svg );
333- $ this ->assertEquals ('86e0362768e8b1b26032381232c0367f ' , md5 ($ svg ));
339+ $ this ->assertEquals ('114f33435c265345f7c6cdf673922292 ' , md5 ($ svg ));
334340 $ headers = xdebug_get_headers ();
335341 $ this ->assertEquals (
336342 'Content-Disposition: inline; filename="test_SVG_filename-001.svg"; ' ,
0 commit comments