From 2d77cfe04b68214e6c234c35a769abdf98676f56 Mon Sep 17 00:00:00 2001 From: geekcom Date: Wed, 25 Jul 2018 17:05:40 -0300 Subject: [PATCH] dockerized, improved tests with coverage --- .gitignore | 3 ++- docker-compose.yml | 8 ++++++++ phpunit.xml | 7 ++++++- tests/{PHPJasper => }/PHPJasperTest.php | 0 tests/bootstrap.php | 3 --- tests/{PHPJasper => }/test.jrxml | 0 6 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 docker-compose.yml rename tests/{PHPJasper => }/PHPJasperTest.php (100%) delete mode 100644 tests/bootstrap.php rename tests/{PHPJasper => }/test.jrxml (100%) diff --git a/.gitignore b/.gitignore index c778013..3ee0a42 100755 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /vendor -tests/PHPJasper/*.jasper +tests/*.jasper +tests/codeCoverage # IDE ## Eclipse diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..a34e7c3 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +version: '2' +services: + php: + image: geekcom/phpjasper + container_name: phpjasper + volumes: + - .:/var/www/app + tty: true diff --git a/phpunit.xml b/phpunit.xml index 27e98e0..f69663f 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,5 +1,5 @@ -tests + + + + \ No newline at end of file diff --git a/tests/PHPJasper/PHPJasperTest.php b/tests/PHPJasperTest.php similarity index 100% rename from tests/PHPJasper/PHPJasperTest.php rename to tests/PHPJasperTest.php diff --git a/tests/bootstrap.php b/tests/bootstrap.php deleted file mode 100644 index 6c8c4f5..0000000 --- a/tests/bootstrap.php +++ /dev/null @@ -1,3 +0,0 @@ -