@@ -18,7 +18,7 @@ public function it_compiles_a_single_anonymous_component()
18
18
19
19
// Note: the empty class here seems to be a Blade components bug.
20
20
$ expected = <<<'SVG'
21
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M128,32a96 ,96,0,1,0,96,96A96.11,96.11,0,0,0,128,32Zm0 ,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,208ZM61 .66,29 .66l-32,32A8,8,0,0,1,18.34,50 .34l32-32A8,8,0,1 ,1,61.66,29 .66Zm176,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,237.66,61 .66ZM184,120a8 ,8,0,0,1,0,16H128a8,8,0,0,1-8-8V72a8 ,8,0,0,1,16,0v48Z"/></svg>
21
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M128,40a96 ,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0 ,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM61 .66,37 .66l-32,32A8,8,0,0,1,18.34,58 .34l32-32A8,8,0,0 ,1,61.66,37 .66Zm176,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,237.66,69 .66ZM184,128a8 ,8,0,0,1,0,16H128a8,8,0,0,1-8-8V80a8 ,8,0,0,1,16,0v48Z"/></svg>
22
22
SVG;
23
23
24
24
$ this ->assertSame ($ expected , $ result );
@@ -30,7 +30,7 @@ public function it_can_add_classes_to_icons()
30
30
$ result = svg ('phosphor-alarm ' , 'w-6 h-6 text-gray-500 ' )->toHtml ();
31
31
32
32
$ expected = <<<'SVG'
33
- <svg class="w-6 h-6 text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M128,32a96 ,96,0,1,0,96,96A96.11,96.11,0,0,0,128,32Zm0 ,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,208ZM61 .66,29 .66l-32,32A8,8,0,0,1,18.34,50 .34l32-32A8,8,0,1 ,1,61.66,29 .66Zm176,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,237.66,61 .66ZM184,120a8 ,8,0,0,1,0,16H128a8,8,0,0,1-8-8V72a8 ,8,0,0,1,16,0v48Z"/></svg>
33
+ <svg class="w-6 h-6 text-gray-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M128,40a96 ,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0 ,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM61 .66,37 .66l-32,32A8,8,0,0,1,18.34,58 .34l32-32A8,8,0,0 ,1,61.66,37 .66Zm176,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,237.66,69 .66ZM184,128a8 ,8,0,0,1,0,16H128a8,8,0,0,1-8-8V80a8 ,8,0,0,1,16,0v48Z"/></svg>
34
34
SVG;
35
35
36
36
$ this ->assertSame ($ expected , $ result );
@@ -42,7 +42,7 @@ public function it_can_add_styles_to_icons()
42
42
$ result = svg ('phosphor-alarm ' , ['style ' => 'color: #555 ' ])->toHtml ();
43
43
44
44
$ expected = <<<'SVG'
45
- <svg style="color: #555" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M128,32a96 ,96,0,1,0,96,96A96.11,96.11,0,0,0,128,32Zm0 ,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,208ZM61 .66,29 .66l-32,32A8,8,0,0,1,18.34,50 .34l32-32A8,8,0,1 ,1,61.66,29 .66Zm176,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,237.66,61 .66ZM184,120a8 ,8,0,0,1,0,16H128a8,8,0,0,1-8-8V72a8 ,8,0,0,1,16,0v48Z"/></svg>
45
+ <svg style="color: #555" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M128,40a96 ,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0 ,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM61 .66,37 .66l-32,32A8,8,0,0,1,18.34,58 .34l32-32A8,8,0,0 ,1,61.66,37 .66Zm176,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,237.66,69 .66ZM184,128a8 ,8,0,0,1,0,16H128a8,8,0,0,1-8-8V80a8 ,8,0,0,1,16,0v48Z"/></svg>
46
46
SVG;
47
47
48
48
$ this ->assertSame ($ expected , $ result );
@@ -56,7 +56,7 @@ public function it_can_add_default_class_from_config()
56
56
$ result = svg ('phosphor-alarm ' )->toHtml ();
57
57
58
58
$ expected = <<<'SVG'
59
- <svg class="awesome" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M128,32a96 ,96,0,1,0,96,96A96.11,96.11,0,0,0,128,32Zm0 ,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,208ZM61 .66,29 .66l-32,32A8,8,0,0,1,18.34,50 .34l32-32A8,8,0,1 ,1,61.66,29 .66Zm176,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,237.66,61 .66ZM184,120a8 ,8,0,0,1,0,16H128a8,8,0,0,1-8-8V72a8 ,8,0,0,1,16,0v48Z"/></svg>
59
+ <svg class="awesome" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M128,40a96 ,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0 ,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM61 .66,37 .66l-32,32A8,8,0,0,1,18.34,58 .34l32-32A8,8,0,0 ,1,61.66,37 .66Zm176,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,237.66,69 .66ZM184,128a8 ,8,0,0,1,0,16H128a8,8,0,0,1-8-8V80a8 ,8,0,0,1,16,0v48Z"/></svg>
60
60
SVG;
61
61
62
62
$ this ->assertSame ($ expected , $ result );
@@ -71,7 +71,7 @@ public function it_can_merge_default_class_from_config()
71
71
$ result = svg ('phosphor-alarm ' , 'w-6 h-6 ' )->toHtml ();
72
72
73
73
$ expected = <<<'SVG'
74
- <svg class="awesome w-6 h-6" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M128,32a96 ,96,0,1,0,96,96A96.11,96.11,0,0,0,128,32Zm0 ,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,208ZM61 .66,29 .66l-32,32A8,8,0,0,1,18.34,50 .34l32-32A8,8,0,1 ,1,61.66,29 .66Zm176,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,237.66,61 .66ZM184,120a8 ,8,0,0,1,0,16H128a8,8,0,0,1-8-8V72a8 ,8,0,0,1,16,0v48Z"/></svg>
74
+ <svg class="awesome w-6 h-6" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor"><path d="M128,40a96 ,96,0,1,0,96,96A96.11,96.11,0,0,0,128,40Zm0 ,176a80,80,0,1,1,80-80A80.09,80.09,0,0,1,128,216ZM61 .66,37 .66l-32,32A8,8,0,0,1,18.34,58 .34l32-32A8,8,0,0 ,1,61.66,37 .66Zm176,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,237.66,69 .66ZM184,128a8 ,8,0,0,1,0,16H128a8,8,0,0,1-8-8V80a8 ,8,0,0,1,16,0v48Z"/></svg>
75
75
SVG;
76
76
77
77
$ this ->assertSame ($ expected , $ result );
0 commit comments