This is a basic Laravel system where i made some test using TDD methodology, it has a API to create a posts and i made tests for testing all methods in the controller for this resource.
Install project dependencies
composer install
Configure .env file
cp .env.example .env
Generate app key
php artisan key:generate
Finally run tests
php artisan run test
or
vendor\bin\phpunit
-
Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
-
PHP Unit PHPUnit is a programmer-oriented testing framework for PHP
Thank you for considering contributing on this project!. You can create a pull request and send your contribution.
The Laravel framework is open-sourced software licensed under the MIT license.