PHP Classes
elePHPant
Icontem

File: test/run

Recommend this page to a friend!
  Classes of Eustaquio Rangel de Oliveira Jr.  >  PHP Torm ORM for ElasticSearch  >  test/run  >  Download  
File: test/run
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Torm ORM for ElasticSearch
Adapter for Torm ORM to access Elastic
Author: By
Last change:
Date: 4 years ago
Size: 352 bytes
 

 

Contents

Class file image Download
#!/bin/bash
export TORM_ENV=test
test=$1
filter=$2

for file in $(find -maxdepth 1 -iname '*.php' -type f)
do
   if [ -n "$test" -a "$file" != "./$test" ]; then 
      continue
   fi
   echo "running $file ..."
   if [ -n "$filter" ]; then
      phpunit --colors --debug --filter "$filter" $file
   else
      phpunit --colors --debug $file
   fi
done