GithubHelp home page GithubHelp logo

pazthor / php-testing-tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from montealegreluis/php-testing-tools

0.0 1.0 0.0 1.06 MB

Code examples with several PHP testing tools

License: MIT License

Makefile 2.35% PHP 89.77% HTML 7.32% CSS 0.02% Shell 0.43% Gherkin 0.12%

php-testing-tools's Introduction

PHP Testing tools

Build Status Code Climate SensioLabsInsight license

This repository was initially a simple Web application which implemented a single feature with a single scenario. Its goal was to provide a set of examples using some of the coolest tools for testing and design in PHP.

It was used for a testing class. The slides are available here.

I'm also starting to use it to describe how an hexagonal architecture might look like in PHP.

Installation

You will need Docker and Docker Compose to run this example. This is now, a monolithic repository using Composer's path feature.

You can customize most of the settings for the containers using the file .env.sh.template as a guide.

Run the following command to use the default settings (recommended):

$ make env

The only key that you need to modify in the new file containers/.env.sh is GITHUB_TOKEN. You'll need a Github token as you will be running composer install for several applications.

Once you have everything configured, run this command:

$ make containers

Usage

I created some aliases to ease the use of the containers.

$ source .alias

Web

You can run the Web application with this command:

$ web

Browse to http://localhost/ to see the web interface.

Console

You can transfer funds to another member like in the web application with this command:

$ console ewallet:transfer

Messaging

Both the Web and the console application generate domain events, those events trigger email notifications. Browse to http://localhost:8080/ to see the emails that are sent after transferring funds either from the console or the web application. To start the messaging container run this command:

$ messaging

Tests

You can start a bash session and run the tests of all the applications and packages with this command:

$ dev

Each folder in the applications and packages directories, has its own README file. See them for more details.

php-testing-tools's People

Contributors

montealegreluis avatar zoek1 avatar

Watchers

Julio Cesar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.