An open API service indexing awesome lists of open source software.

https://github.com/danielhe4rt/lumen-unit-test


https://github.com/danielhe4rt/lumen-unit-test

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          


Lumen Unitary Test


Project made for study purposes and understand how PHPUnit and TDD works.

## :exclamation: The concept of everything

I found on my old drive some link for some Test for a random job who asks for a TDD heavy developer, so I decide to try to learn how to write and code TDD.

## :computer: Technologies

I chose to use Lumen because I work with the framework on a daily basis, so it makes a lot easier. Here is the most important about the code:

- PHPUnit

Used to make all tests run. I was about to use the Codeception, but PHPUnit is already native on Laravel/Lumen, so is a quite easy to run everything

Ok, now let's install and try it.

## :rocket: 5 minutes quick start

:bulb: After your project is cloned, you must have installed the composer on your machine to download all dependencies.
Entering the command below will begin to download the dependencies:

```
composer install
```


With everything set up, you can run the game using the command below (Remember to use this command on the project folder):

```
vendor/bin/phpunit --testdox
```

## :mailbox_with_mail: License

This software was created for study purposes only. Feel free to try it out.