@@ -18,7 +18,7 @@ public function testConfigTree(array $options, array $expectedResult)
1818 $ configuration = new Configuration ();
1919 $ config = $ processor ->processConfiguration ($ configuration , [$ options ]);
2020
21- $ this ->assertEqualsCanonicalizing ($ expectedResult , $ config );
21+ $ this ->assertEquals ($ expectedResult , $ config );
2222 }
2323
2424 public static function getTestConfiguration (): iterable
@@ -41,6 +41,11 @@ public static function getTestConfiguration(): iterable
4141 ],
4242 [
4343 'doc_identifier ' => 'TWIG_DOC ' ,
44+ 'breakpoints ' => [
45+ 'small ' => 240 ,
46+ 'medium ' => 640 ,
47+ 'large ' => 768 ,
48+ ],
4449 'directories ' => [
4550 __DIR__ .'/../../TestApp/templates/components ' ,
4651 __DIR__ .'/../../TestApp/templates/snippets ' ,
@@ -100,6 +105,11 @@ public static function getTestConfiguration(): iterable
100105 ],
101106 [
102107 'doc_identifier ' => 'TWIG_DOC ' ,
108+ 'breakpoints ' => [
109+ 'small ' => 240 ,
110+ 'medium ' => 640 ,
111+ 'large ' => 768 ,
112+ ],
103113 'directories ' => [
104114 __DIR__ .'/../../TestApp/templates/components ' ,
105115 __DIR__ .'/../../TestApp/templates/snippets ' ,
@@ -139,5 +149,28 @@ public static function getTestConfiguration(): iterable
139149 ],
140150 ],
141151 ];
152+
153+ yield 'Breakpoint config ' => [
154+ [
155+ 'breakpoints ' => [
156+ 'iphone ' => 568 ,
157+ 'galaxy s10 ' => 658 ,
158+ 'generic ' => 896 ,
159+ ],
160+ ],
161+ [
162+ 'breakpoints ' => [
163+ 'iphone ' => 568 ,
164+ 'galaxy s10 ' => 658 ,
165+ 'generic ' => 896 ,
166+ ],
167+ 'doc_identifier ' => 'TWIG_DOC ' ,
168+ 'directories ' => [
169+ '%twig.default_path%/components ' ,
170+ ],
171+ 'categories ' => [],
172+ 'components ' => [],
173+ ],
174+ ];
142175 }
143176}
0 commit comments