Skip to content

markuusche/phpunit-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note

It is expected that you cannot run this project without the api base url and its endpoints.
The purpose of this project is to demonstrate that I've developed something for personal use and future reference.
If you have any questions, feel free to contact me through one of my socials on my github profile.

PhpUnit API Automation

API Testing Automation

Project Dependencies

  • phpunit
  • guzzle
  • faker

Coverage

  • [GET Balance]
  • [POST Register]
  • [POST Deposit]
  • [POST Withdraw]
  • [POST Transaction Check]
  • [GET Game Limit]
  • [GET List]
  • [GET Game URL]
  • [GET Game History]
  • [GET Game Promo]

Pre-Requisites

  1. Composer make sure Composer is installed in your system

Setting Up First Run on Your Local Machine

  1. Clone this project on your local machine

    https://github.com/markuusche/phpunit-api
    
  2. Open a terminal inside your local clone of the repository.

  3. Install dependencies:

    phpunit

    composer require --dev phpunit/phpunit

    guzzle

    composer require --dev guzzlehttp/guzzle

    faker

    composer require --dev fakerphp/faker

Run tests

./vendor/bin/phpunit --testsuite TestAPI --testdox

About

🚀phpUnit automation api

Resources

Stars

Watchers

Forks

Languages