Load single alice fixtures yml file before a phpunit test with symfony.
Install phpunit-injector
- composer:
##################################### | |
# This version works on python 3 # | |
# Install pillow, zbarlight and cv2 # | |
##################################### | |
from picamera.array import PiRGBArray | |
from picamera import PiCamera | |
import time | |
import sys | |
import cv2 |
#!/bin/bash | |
prodDbString=$(grep "DATABASE_URL" //httpdocs/prodEnv/releases/current/.env.local) | |
testDbString=$(grep "DATABASE_URL" //httpdocs/testEnv/releases/current/.env) | |
function readDbCredentials { | |
user=$(grep -oP "(?<=mysql\:\/\/)\w+(?=\:)" <<< $1) | |
pw=$(grep -oP "(?<=mysql\:\/\/$user\:).*(?=\@)" <<< $1) | |
db=$(grep -oP "\w+$" <<< $1) |
Load single alice fixtures yml file before a phpunit test with symfony.