@@ -216,7 +216,7 @@ public function testCustomSrcsetPairs() {
216216 $ builder = new UrlBuilder ("demos.imgix.net " , true , false );
217217 $ opts = array ('start ' => 328 , 'stop ' => 328 );
218218 $ actual = $ builder ->createSrcSet ($ path ="image.jpg " , $ params =array (), $ options =$ opts );
219- $ expected = 'https://demos.imgix.net/image.jpg?ixlib=php-3.3.1 &w=328 328w ' ;
219+ $ expected = 'https://demos.imgix.net/image.jpg?ixlib=php-4.0.0 &w=328 328w ' ;
220220 $ this ->assertEquals ($ expected , $ actual );
221221
222222 $ builder = new UrlBuilder ("demos.imgix.net " , true , false );
@@ -225,15 +225,15 @@ public function testCustomSrcsetPairs() {
225225 $ params =array (),
226226 $ options =array ('start ' => 720 , 'stop ' => 720 ));
227227
228- $ expected = 'https://demos.imgix.net/image.jpg?ixlib=php-3.3.1 &w=720 720w ' ;
228+ $ expected = 'https://demos.imgix.net/image.jpg?ixlib=php-4.0.0 &w=720 720w ' ;
229229 $ this ->assertEquals ($ expected , $ actual );
230230
231231 $ builder = new UrlBuilder ("demos.imgix.net " , true , false );
232232 $ opts = array ('start ' => 640 , 'stop ' => 720 );
233233 $ actual = $ builder ->createSrcSet ($ path ="image.jpg " , $ params =array (), $ options =$ opts );
234234 $ expected = // Raw string literal
235- 'https://demos.imgix.net/image.jpg?ixlib=php-3.3.1 &w=640 640w,
236- https://demos.imgix.net/image.jpg?ixlib=php-3.3.1 &w=720 720w ' ;
235+ 'https://demos.imgix.net/image.jpg?ixlib=php-4.0.0 &w=640 640w,
236+ https://demos.imgix.net/image.jpg?ixlib=php-4.0.0 &w=720 720w ' ;
237237
238238 $ this ->assertEquals ($ expected , $ actual );
239239
@@ -242,11 +242,11 @@ public function testCustomSrcsetPairs() {
242242 $ opts = array ('start ' => 100 , 'stop ' => 108 , 'tol ' => 0.01 );
243243 $ actual = $ builder ->createSrcSet ($ path ="image.jpg " , $ params =array (), $ options =$ opts );
244244 $ expected = // Raw string literal
245- 'https://demos.imgix.net/image.jpg?ixlib=php-3.3.1 &w=100 100w,
246- https://demos.imgix.net/image.jpg?ixlib=php-3.3.1 &w=102 102w,
247- https://demos.imgix.net/image.jpg?ixlib=php-3.3.1 &w=104 104w,
248- https://demos.imgix.net/image.jpg?ixlib=php-3.3.1 &w=106 106w,
249- https://demos.imgix.net/image.jpg?ixlib=php-3.3.1 &w=108 108w ' ;
245+ 'https://demos.imgix.net/image.jpg?ixlib=php-4.0.0 &w=100 100w,
246+ https://demos.imgix.net/image.jpg?ixlib=php-4.0.0 &w=102 102w,
247+ https://demos.imgix.net/image.jpg?ixlib=php-4.0.0 &w=104 104w,
248+ https://demos.imgix.net/image.jpg?ixlib=php-4.0.0 &w=106 106w,
249+ https://demos.imgix.net/image.jpg?ixlib=php-4.0.0 &w=108 108w ' ;
250250
251251 $ this ->assertEquals ($ expected , $ actual );
252252 }
@@ -291,11 +291,11 @@ public function testDprSrcsetWithQ100() {
291291 $ actual = $ builder ->createSrcSet (
292292 $ path ="image.jpg " , $ params =array ("w " => 640 , "q " => 100 ));
293293 $ expected =
294- 'https://demos.imgix.net/image.jpg?dpr=1&ixlib=php-3.3.1 &q=100&w=640 1x,
295- https://demos.imgix.net/image.jpg?dpr=2&ixlib=php-3.3.1 &q=100&w=640 2x,
296- https://demos.imgix.net/image.jpg?dpr=3&ixlib=php-3.3.1 &q=100&w=640 3x,
297- https://demos.imgix.net/image.jpg?dpr=4&ixlib=php-3.3.1 &q=100&w=640 4x,
298- https://demos.imgix.net/image.jpg?dpr=5&ixlib=php-3.3.1 &q=100&w=640 5x ' ;
294+ 'https://demos.imgix.net/image.jpg?dpr=1&ixlib=php-4.0.0 &q=100&w=640 1x,
295+ https://demos.imgix.net/image.jpg?dpr=2&ixlib=php-4.0.0 &q=100&w=640 2x,
296+ https://demos.imgix.net/image.jpg?dpr=3&ixlib=php-4.0.0 &q=100&w=640 3x,
297+ https://demos.imgix.net/image.jpg?dpr=4&ixlib=php-4.0.0 &q=100&w=640 4x,
298+ https://demos.imgix.net/image.jpg?dpr=5&ixlib=php-4.0.0 &q=100&w=640 5x ' ;
299299 $ this ->assertEquals ($ expected , $ actual );
300300 }
301301
@@ -305,11 +305,11 @@ public function testDprSrcsetWithDefaultQuality() {
305305 $ actual = $ builder ->createSrcSet ($ path ="image.jpg " , $ params =array ("w " => 740 ));
306306
307307 $ expected =
308- 'https://demos.imgix.net/image.jpg?dpr=1&ixlib=php-3.3.1 &q=75&w=740 1x,
309- https://demos.imgix.net/image.jpg?dpr=2&ixlib=php-3.3.1 &q=50&w=740 2x,
310- https://demos.imgix.net/image.jpg?dpr=3&ixlib=php-3.3.1 &q=35&w=740 3x,
311- https://demos.imgix.net/image.jpg?dpr=4&ixlib=php-3.3.1 &q=23&w=740 4x,
312- https://demos.imgix.net/image.jpg?dpr=5&ixlib=php-3.3.1 &q=20&w=740 5x ' ;
308+ 'https://demos.imgix.net/image.jpg?dpr=1&ixlib=php-4.0.0 &q=75&w=740 1x,
309+ https://demos.imgix.net/image.jpg?dpr=2&ixlib=php-4.0.0 &q=50&w=740 2x,
310+ https://demos.imgix.net/image.jpg?dpr=3&ixlib=php-4.0.0 &q=35&w=740 3x,
311+ https://demos.imgix.net/image.jpg?dpr=4&ixlib=php-4.0.0 &q=23&w=740 4x,
312+ https://demos.imgix.net/image.jpg?dpr=5&ixlib=php-4.0.0 &q=20&w=740 5x ' ;
313313 $ this ->assertEquals ($ expected , $ actual );
314314 }
315315
@@ -321,11 +321,11 @@ public function testDprVariableQualityDisabled() {
321321 $ actual = $ builder ->createSrcSet ($ path ="image.jpg " , $ params =$ params , $ opts =$ opts );
322322
323323 $ expected =
324- 'https://demos.imgix.net/image.jpg?dpr=1&ixlib=php-3.3.1 &w=640 1x,
325- https://demos.imgix.net/image.jpg?dpr=2&ixlib=php-3.3.1 &w=640 2x,
326- https://demos.imgix.net/image.jpg?dpr=3&ixlib=php-3.3.1 &w=640 3x,
327- https://demos.imgix.net/image.jpg?dpr=4&ixlib=php-3.3.1 &w=640 4x,
328- https://demos.imgix.net/image.jpg?dpr=5&ixlib=php-3.3.1 &w=640 5x ' ;
324+ 'https://demos.imgix.net/image.jpg?dpr=1&ixlib=php-4.0.0 &w=640 1x,
325+ https://demos.imgix.net/image.jpg?dpr=2&ixlib=php-4.0.0 &w=640 2x,
326+ https://demos.imgix.net/image.jpg?dpr=3&ixlib=php-4.0.0 &w=640 3x,
327+ https://demos.imgix.net/image.jpg?dpr=4&ixlib=php-4.0.0 &w=640 4x,
328+ https://demos.imgix.net/image.jpg?dpr=5&ixlib=php-4.0.0 &w=640 5x ' ;
329329 $ this ->assertEquals ($ expected , $ actual );
330330 }
331331
@@ -338,11 +338,11 @@ public function testDprSrcsetQOverridesEnabledVariableQuality() {
338338 $ actual = $ builder ->createSrcSet ($ path ="image.jpg " , $ params , $ opts );
339339
340340 $ expected =
341- 'https://demos.imgix.net/image.jpg?dpr=1&ixlib=php-3.3.1 &q=75&w=540 1x,
342- https://demos.imgix.net/image.jpg?dpr=2&ixlib=php-3.3.1 &q=75&w=540 2x,
343- https://demos.imgix.net/image.jpg?dpr=3&ixlib=php-3.3.1 &q=75&w=540 3x,
344- https://demos.imgix.net/image.jpg?dpr=4&ixlib=php-3.3.1 &q=75&w=540 4x,
345- https://demos.imgix.net/image.jpg?dpr=5&ixlib=php-3.3.1 &q=75&w=540 5x ' ;
341+ 'https://demos.imgix.net/image.jpg?dpr=1&ixlib=php-4.0.0 &q=75&w=540 1x,
342+ https://demos.imgix.net/image.jpg?dpr=2&ixlib=php-4.0.0 &q=75&w=540 2x,
343+ https://demos.imgix.net/image.jpg?dpr=3&ixlib=php-4.0.0 &q=75&w=540 3x,
344+ https://demos.imgix.net/image.jpg?dpr=4&ixlib=php-4.0.0 &q=75&w=540 4x,
345+ https://demos.imgix.net/image.jpg?dpr=5&ixlib=php-4.0.0 &q=75&w=540 5x ' ;
346346 $ this ->assertEquals ($ expected , $ actual );
347347 }
348348
@@ -356,11 +356,11 @@ public function testDprSrcsetQOverridesDisabledVariableQuality() {
356356 $ options =$ opts );
357357
358358 $ expected =
359- 'https://demos.imgix.net/image.jpg?dpr=1&ixlib=php-3.3.1 &q=99&w=440 1x,
360- https://demos.imgix.net/image.jpg?dpr=2&ixlib=php-3.3.1 &q=99&w=440 2x,
361- https://demos.imgix.net/image.jpg?dpr=3&ixlib=php-3.3.1 &q=99&w=440 3x,
362- https://demos.imgix.net/image.jpg?dpr=4&ixlib=php-3.3.1 &q=99&w=440 4x,
363- https://demos.imgix.net/image.jpg?dpr=5&ixlib=php-3.3.1 &q=99&w=440 5x ' ;
359+ 'https://demos.imgix.net/image.jpg?dpr=1&ixlib=php-4.0.0 &q=99&w=440 1x,
360+ https://demos.imgix.net/image.jpg?dpr=2&ixlib=php-4.0.0 &q=99&w=440 2x,
361+ https://demos.imgix.net/image.jpg?dpr=3&ixlib=php-4.0.0 &q=99&w=440 3x,
362+ https://demos.imgix.net/image.jpg?dpr=4&ixlib=php-4.0.0 &q=99&w=440 4x,
363+ https://demos.imgix.net/image.jpg?dpr=5&ixlib=php-4.0.0 &q=99&w=440 5x ' ;
364364 $ this ->assertEquals ($ expected , $ actual );
365365 }
366366
@@ -369,11 +369,11 @@ public function testCreateSrcSetFromWidthsArray() {
369369 $ opts = array ('widths ' => array (100 , 200 , 303 , 404 , 535 ));
370370 $ actual = $ builder ->createSrcSet ($ path ="image.jpg " , $ params =array (), $ options =$ opts );
371371 $ expected =
372- 'https://demos.imgix.net/image.jpg?ixlib=php-3.3.1 &w=100 100w,
373- https://demos.imgix.net/image.jpg?ixlib=php-3.3.1 &w=200 200w,
374- https://demos.imgix.net/image.jpg?ixlib=php-3.3.1 &w=303 303w,
375- https://demos.imgix.net/image.jpg?ixlib=php-3.3.1 &w=404 404w,
376- https://demos.imgix.net/image.jpg?ixlib=php-3.3.1 &w=535 535w ' ;
372+ 'https://demos.imgix.net/image.jpg?ixlib=php-4.0.0 &w=100 100w,
373+ https://demos.imgix.net/image.jpg?ixlib=php-4.0.0 &w=200 200w,
374+ https://demos.imgix.net/image.jpg?ixlib=php-4.0.0 &w=303 303w,
375+ https://demos.imgix.net/image.jpg?ixlib=php-4.0.0 &w=404 404w,
376+ https://demos.imgix.net/image.jpg?ixlib=php-4.0.0 &w=535 535w ' ;
377377
378378 $ this ->assertEquals ($ expected , $ actual );
379379 }
0 commit comments