Skip to content

Basic calculator interface created in PHP to showcase knowledge in Unit Testing/Functional Testing

Notifications You must be signed in to change notification settings

hex3n/PHP-Unit-Testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Unit Testing for a PHP Calculator

Basic calculator interface created in PHP to showcase knowledge in Unit Testing/Functional Testing

• To access the calculator itself:

Clone the project to your local machine, open XAMPP, then paste the project files into your htdocs folder. From there, after ensuring your port connection is OK, connect via localhost. For example, my directory would be: "http://localhost:8095/PHP-Calculator/app/". You have now accessed the calculator.

• To perform unit testing:

First, access the testing branch of this project. Clone the project to your local machine, then open a Bash terminal and make sure all your dependencies are present:

image

Then, to confirm PHPUnit is correctly installed, execute this command from the same Bash terminal: image

And finally, to perform the unit testing on user values for the calculator, you can input this command: image

If you get any errors, make sure your PHP configuration, PHPUnit installation, and XAMPP/Port configurations are all correctly set up.

Thanks!

About

Basic calculator interface created in PHP to showcase knowledge in Unit Testing/Functional Testing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published