@@ -27,7 +27,7 @@ import spray.json._
2727import spray .json .DefaultJsonProtocol ._
2828
2929@ RunWith (classOf [JUnitRunner ])
30- abstract class Php7ActionContainerTests extends BasicActionRunnerTests with WskActorSystem {
30+ abstract class Php8ActionContainerTests extends BasicActionRunnerTests with WskActorSystem {
3131 // note: "out" will not be empty as the PHP web server outputs a message when it starts up
3232 val enforceEmptyOutputStream = false
3333
@@ -37,7 +37,7 @@ abstract class Php7ActionContainerTests extends BasicActionRunnerTests with WskA
3737 withContainer(phpContainerImageName, env)(code)
3838 }
3939
40- def withPhp7Container (code : ActionContainer => Unit ) = withActionContainer()(code)
40+ def withPhp8Container (code : ActionContainer => Unit ) = withActionContainer()(code)
4141
4242 behavior of phpContainerImageName
4343
@@ -132,7 +132,7 @@ abstract class Php7ActionContainerTests extends BasicActionRunnerTests with WskA
132132 }
133133
134134 it should " return some error on action error" in {
135- val (out, err) = withPhp7Container { c =>
135+ val (out, err) = withPhp8Container { c =>
136136 val code =
137137 """
138138 |<?php
@@ -220,7 +220,7 @@ abstract class Php7ActionContainerTests extends BasicActionRunnerTests with WskA
220220 }
221221
222222 it should " support application errors" in {
223- withPhp7Container { c =>
223+ withPhp8Container { c =>
224224 val code =
225225 """
226226 |<?php
@@ -242,7 +242,7 @@ abstract class Php7ActionContainerTests extends BasicActionRunnerTests with WskA
242242 }
243243
244244 it should " fail gracefully when an action has a fatal error" in {
245- val (out, err) = withPhp7Container { c =>
245+ val (out, err) = withPhp8Container { c =>
246246 val code =
247247 """
248248 | <?php
@@ -272,7 +272,7 @@ abstract class Php7ActionContainerTests extends BasicActionRunnerTests with WskA
272272 }
273273
274274 it should " support returning a stdClass" in {
275- val (out, err) = withPhp7Container { c =>
275+ val (out, err) = withPhp8Container { c =>
276276 val code =
277277 """
278278 | <?php
@@ -296,7 +296,7 @@ abstract class Php7ActionContainerTests extends BasicActionRunnerTests with WskA
296296 }
297297
298298 it should " support returning an object with a getArrayCopy() method" in {
299- val (out, err) = withPhp7Container { c =>
299+ val (out, err) = withPhp8Container { c =>
300300 val code =
301301 """
302302 | <?php
@@ -320,7 +320,7 @@ abstract class Php7ActionContainerTests extends BasicActionRunnerTests with WskA
320320 }
321321
322322 it should " support the documentation examples (1)" in {
323- val (out, err) = withPhp7Container { c =>
323+ val (out, err) = withPhp8Container { c =>
324324 val code =
325325 """
326326 | <?php
@@ -354,7 +354,7 @@ abstract class Php7ActionContainerTests extends BasicActionRunnerTests with WskA
354354
355355 it should " have Guzzle and Uuid packages available" in {
356356 // GIVEN that it should "error when requiring a non-existent package" (see test above for this)
357- val (out, err) = withPhp7Container { c =>
357+ val (out, err) = withPhp8Container { c =>
358358 val code =
359359 """
360360 | <?php
@@ -397,7 +397,7 @@ abstract class Php7ActionContainerTests extends BasicActionRunnerTests with WskA
397397 // Lest someone should make it too easy.
398398 code.length should be >= 500000
399399
400- val (out, err) = withPhp7Container { c =>
400+ val (out, err) = withPhp8Container { c =>
401401 c.init(initPayload(code))._1 should be(200 )
402402
403403 val (runCode, runRes) = c.run(runPayload(JsObject ()))
@@ -431,7 +431,7 @@ abstract class Php7ActionContainerTests extends BasicActionRunnerTests with WskA
431431
432432 val code = ZipBuilder .mkBase64Zip(srcs)
433433
434- val (out, err) = withPhp7Container { c =>
434+ val (out, err) = withPhp8Container { c =>
435435 c.init(initPayload(code))._1 should be(200 )
436436
437437 val (runCode, runRes) = c.run(runPayload(JsObject ()))
@@ -456,7 +456,7 @@ abstract class Php7ActionContainerTests extends BasicActionRunnerTests with WskA
456456
457457 val code = ZipBuilder .mkBase64Zip(srcs)
458458
459- val (out, err) = withPhp7Container { c =>
459+ val (out, err) = withPhp8Container { c =>
460460 c.init(initPayload(code))._1 should be(200 )
461461
462462 val (runCode, runRes) = c.run(runPayload(JsObject ()))
@@ -479,7 +479,7 @@ abstract class Php7ActionContainerTests extends BasicActionRunnerTests with WskA
479479
480480 val code = ZipBuilder .mkBase64Zip(srcs)
481481
482- withPhp7Container { c =>
482+ withPhp8Container { c =>
483483 c.init(initPayload(code, main = " niam" ))._1 should be(200 )
484484
485485 val (runCode, runRes) = c.run(runPayload(JsObject ()))
@@ -501,7 +501,7 @@ abstract class Php7ActionContainerTests extends BasicActionRunnerTests with WskA
501501
502502 val code = ZipBuilder .mkBase64Zip(srcs)
503503
504- withPhp7Container { c =>
504+ withPhp8Container { c =>
505505 c.init(initPayload(code))._1 should be(200 )
506506
507507 val (runCode, runRes) = c.run(runPayload(JsObject ()))
@@ -523,7 +523,7 @@ abstract class Php7ActionContainerTests extends BasicActionRunnerTests with WskA
523523
524524 val code = ZipBuilder .mkBase64Zip(srcs)
525525
526- withPhp7Container { c =>
526+ withPhp8Container { c =>
527527 c.init(initPayload(code))._1 should be(200 )
528528
529529 val (runCode, runRes) = c.run(runPayload(JsArray (JsString (" a" ), JsString (" b" ))))
0 commit comments