Load single alice fixtures yml file before a phpunit test with symfony.
Install phpunit-injector
- composer:
Load single alice fixtures yml file before a phpunit test with symfony.
#!/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) |
##################################### | |
# 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 |