This repository contains the sample for TDD using PHP Unit and Mockery
To install composer please visit the following official site for composer Official Documentation
Project structure setup
PHPUnitSample |----src: This folder contains all php source files. |----tests: This folder contains unit test cases. |----vendor: composer generated libraries and files.
After creating the project structure just install the php unit and mockery using following commands
PHPUnit:
`composer require --dev phpunit/phpunit`
Mockery:
`composer require --dev mockery/mockery`
Configure PHP Unit in Intellij Idea: To configure PHPUnit in Intellij idea just click on edit configuration and select the php interpreter.