https://github.com/danielhe4rt/lumen-unit-test
https://github.com/danielhe4rt/lumen-unit-test
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/danielhe4rt/lumen-unit-test
- Owner: danielhe4rt
- Created: 2019-07-20T22:14:15.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-20T22:20:32.000Z (almost 7 years ago)
- Last Synced: 2025-09-29T03:34:09.800Z (9 months ago)
- Language: PHP
- Size: 28.3 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.