You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: tests/Fixtures/filter/fontawesome-noexists.test
+15-3
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
--TEST--
2
-
fontawesome filter throws exception if no SVG is found
2
+
fontawesome filter comment tags if no SVG is found
3
3
--TEMPLATE--
4
4
{%- apply fontawesome -%}
5
5
<!DOCTYPE html>
@@ -20,5 +20,17 @@ fontawesome filter throws exception if no SVG is found
20
20
{%- endapply -%}
21
21
--DATA--
22
22
return []
23
-
--EXCEPTION--
24
-
Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template (""FileSystemLoader" cannot load SVG for "solid/does-not-exist" on "tests/Fixtures/Resources" loading SVG for "fa-solid fa-does-not-exist" by "FontAwesomeLoader".") in "index.twig" at line 2.
Copy file name to clipboardexpand all lines: tests/Fixtures/filter/iconify-invalid.test
+1-1
Original file line number
Diff line number
Diff line change
@@ -19,4 +19,4 @@ iconify filter throws exception if invalid json is found
19
19
--DATA--
20
20
return []
21
21
--EXCEPTION--
22
-
Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template (""IconifyLoader" cannot load SVG for "invalid:json".") in "index.twig" at line 2.
22
+
Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("Unable to parse "tests/Fixtures/Resources/json/invalid.json" JSON file") in "index.twig" at line 2.
Copy file name to clipboardexpand all lines: tests/Fixtures/filter/iconify-noexists-collection.test
+15-3
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
--TEST--
2
-
iconify filter throws exception if no SVG collection is found
2
+
iconify filter comment tags if no SVG collection is found
3
3
--TEMPLATE--
4
4
{%- apply iconify -%}
5
5
<!DOCTYPE html>
@@ -18,5 +18,17 @@ iconify filter throws exception if no SVG collection is found
18
18
{%- endapply -%}
19
19
--DATA--
20
20
return []
21
-
--EXCEPTION--
22
-
Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template (""IconifyLoader" cannot load SVG for "collection-does-not-exists:home".") in "index.twig" at line 2.
Copy file name to clipboardexpand all lines: tests/Fixtures/function/svg-noexists.test
+16-7
Original file line number
Diff line number
Diff line change
@@ -10,16 +10,25 @@ svg function throws exception if no SVG is found
10
10
11
11
<body>
12
12
13
-
{{ svg('no-exists.svg') }}
13
+
{{ svg('no-exists.svg') }}
14
14
15
15
</body>
16
16
</html>
17
17
--DATA--
18
18
return []
19
-
--EXCEPTION--
20
-
Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template (""ChainLoader" cannot load SVG for "no-exists.svg":
19
+
--CONFIG--
20
+
return ['debug' => true]
21
+
--EXPECT--
22
+
<!DOCTYPE html>
23
+
<html lang="en">
24
+
25
+
<head>
26
+
<meta charset="utf-8">
27
+
</head>
21
28
22
-
1. [Ocubom\Twig\Extension\Svg\Exception\LoaderException] "FileSystemLoader" cannot load SVG for "no-exists.svg" on "tests/Fixtures/Resources".
23
-
2. [Ocubom\Twig\Extension\Svg\Exception\LoaderException] "FileSystemLoader" cannot load SVG for "solid/no-exists.svg" on "tests/Fixtures/Resources" loading SVG for "no-exists.svg" by "FontAwesomeLoader".
24
-
3. [Ocubom\Twig\Extension\Svg\Exception\LoaderException] "IconifyLoader" cannot load SVG for "no-exists.svg".
0 commit comments