Skip to content

Commit

Permalink
#2037: Update php func tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Mar 13, 2020
1 parent 7a07674 commit d0ecc6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 42 deletions.
24 changes: 2 additions & 22 deletions examples/php/.lando.yml
Expand Up @@ -11,28 +11,6 @@ services:
cliold:
type: php:5.6
via: cli
cli74:
type: php:7.4
via: cli
custom74:
type: php:7.4
via: nginx
ssl: true
xdebug: true
webroot: web
config:
php: config/php.ini
overrides:
image: devwithlando/php:7.4-fpm-2
environment:
DUALBLADE: maxim
custom74_apache:
type: php:7.4
via: apache
overrides:
image: devwithlando/php:7.4-apache-2
environment:
DUALBLADE: maxim
custom:
type: php:7.1
via: nginx
Expand All @@ -45,6 +23,8 @@ services:
image: devwithlando/php:7.1-fpm-2
environment:
DUALBLADE: maxim
custom74:
type: php:7.4
composer:
type: php:7.0
composer:
Expand Down
20 changes: 0 additions & 20 deletions examples/php/README.md
Expand Up @@ -47,9 +47,6 @@ lando ssh -s defaults -c "php -i | grep memory_limit | grep -e \"-1\""
# Should not enable xdebug by default
lando ssh -s defaults -c "php -m | grep xdebug" || echo $? | grep 1

# Should use specified php version if given
lando ssh -s cli74 -c "php -v" | grep "PHP 7.4"

# Should use specified php version if given
lando ssh -s custom -c "php -v" | grep "PHP 7.1"

Expand All @@ -65,23 +62,6 @@ lando ssh -s custom -c "php -m | grep xdebug"
# Should not serve port 80 for cli
lando ssh -s cli -c "curl http://localhost" || echo $? | grep 1

# Should use custom php ini if specified
lando ssh -s custom74 -c "php -i | grep memory_limit | grep 514"
lando ssh -s custom74 -c "curl http://custom_nginx" | grep html_errors | grep On | grep On

# Should inherit overrides from its generator
lando ssh -s custom74 -c "env | grep DUALBLADE | grep maxim"
lando ssh -s custom74_nginx -c "env | grep DUALBLADE | grep maxim"

# Should enable xdebug if specified
lando ssh -s custom74 -c "php -m | grep xdebug" || echo $? | grep 1

# Should serve via nginx if specified
lando ssh -s custom74_nginx -c "curl http://localhost | grep WEBDIR"

# Should serve via apache if specified
lando ssh -s custom74_apache -c "curl http://localhost | grep ROOTDIR"

# Should use custom php ini if specified
lando ssh -s custom -c "php -i | grep memory_limit | grep 514"
lando ssh -s custom -c "curl http://custom_nginx" | grep html_errors | grep On | grep On
Expand Down

0 comments on commit d0ecc6b

Please sign in to comment.