Category : phpunit

docker-compose.yml version: ‘3.8’ services: frontend: container_name: birdboard_frontend build: context: . dockerfile: Dockerfile command: ‘php artisan serve –host=0.0.0.0’ volumes: – .:/app ports: – 8009:8000 networks: – sail database: container_name: birdboard_database image: mysql:latest restart: always ports: – "3309:3306" environment: MYSQL_DATABASE: birdboard MYSQL_ROOT_USER: root MYSQL_ROOT_PASSWORD: birdboard networks: – sail phpmyadmin: container_name: birdboard_phpmyadmin image: phpmyadmin/phpmyadmin:latest # depends_on: # – ..

Read more

docker-compose.yml version: ‘3.8’ services: frontend: container_name: birdboard_frontend build: context: . dockerfile: Dockerfile command: ‘php artisan serve –host=0.0.0.0’ volumes: – .:/app ports: – 8009:8000 networks: – sail database: container_name: birdboard_database image: mysql:latest restart: always ports: – "3309:3306" environment: MYSQL_DATABASE: birdboard MYSQL_ROOT_USER: root MYSQL_ROOT_PASSWORD: birdboard networks: – sail phpmyadmin: container_name: birdboard_phpmyadmin image: phpmyadmin/phpmyadmin:latest # depends_on: # – ..

Read more

I’m trying to launch a PHPUnit test on my project from a docker container I run winpty docker exec -ti pcu-php sh and then : vendor/bin/phpunit –colors=always –testdox tests/Controller/UserChangePasswordActionTest.php –filter=testChangeUserPassword i got this error : Environment variable not found: "MAILJET_APIKEY_PUBLIC" I tried to add MAILJET_APIKEY_PUBLIC in phpunit.xml.dist : <php> <ini name="error_reporting" value="-1" /> <server name="APP_ENV" ..

Read more

I use the following command to run my tests on my containerised Laravel instance: docker-compose run –rm app-fpm ./api/vendor/bin/phpunit –verbose api/tests If I run this command for the tests/component, tests/feature and tests/unit folders all tests pass successfully without any issues. However, when I try to run them all like above I get the following: PHPUnit ..

Read more

When I try to install PHPUnit in docker, I got the error message but mcrypt seems to be installed. What did I miss ? $ composer require phpunit/phpunit=3.7.* –dev The requested PHP extension ext-mcrypt * is missing from your system. Install or enable PHP’s mcrypt extension. $ yum list installed | grep mcrypt libmcrypt.x86_64 2.5.8-9.el6 ..

Read more