Bladeren bron

Closes #606: Add the test instrucctions

Signed-off-by: Marcela Bonell <[email protected]>
Marcela Bonell 10 jaren geleden
bovenliggende
commit
a4d5dcf25f
2 gewijzigde bestanden met toevoegingen van 8 en 8 verwijderingen
  1. 2 8
      test/tests/php-hello-world/index.php
  2. 6 0
      test/tests/php-hello-world/run.sh

+ 2 - 8
test/tests/php-hello-world/index.php

@@ -1,8 +1,2 @@
-<html>
-	<head>
-  		<title>PHP Test</title>
- 	</head>
- 	<body>
- 		<?php echo "<p>Hello World</p>"; ?> 
- 	</body>
-</html>
+<?php echo "Hello World!"; ?> 
+

+ 6 - 0
test/tests/php-hello-world/run.sh

@@ -0,0 +1,6 @@
+#!/bin/bash
+
+IMAGE="$1"
+DIR="/var/www/html/hello-world"
+
+docker run -it --rm -v $PWD:$DIR -w $DIR $IMAGE php index.php