Php Unit Testing Example
This repo contains the very basic implementation of Php unit testing with phpunit.
Unit testing is the best approach of Test Driven Development(TDD). TDD at first might feel like a complete wast, but it is the best approach of development.
******************************** Installation **************************************
Clone the repo
Simply run composer Update
Now you can Add all the classes you want to test in src folder and add necessary tests you want to perform in tests folder .
For running tests, simply run phpunit filename on terminal, by being on the root folder. You should see the tests results.