Skip to content
/ bank Public

this is a training project on namespace and PHPUnit and so on

Notifications You must be signed in to change notification settings

qahmad81/bank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bank

this is a training project on namespace and PHPUnit and so on

This project have Account Class that have:

  • constructer that initial balance
  • credit method that add credit to balance
  • debit method that decrease credit from balance
  • getBalance that return the current balance

On another side we have TestUnit for Account class that test:

  • Its just working
  • At start have well Functionality
  • and then we pass a lot of data that test most cases
  • at last we have more 100 test with 100 transaction each to (stress test(i dont remember the suit word)) the model

Installation

Clone this repo

git clone [email protected]:qahmad81/bank.git
composer update

implementation

in console write this line at root of project in linux

vendor/bin/phpunit src/test --bootstrap src/autoload.php

in windows

vendor\bin\phpunit src/test --bootstrap src/autoload.php

you can alsow see index.php on root of project for sure of every things is ok

About

this is a training project on namespace and PHPUnit and so on

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages