This is the sample code for the LinkedIn Learning course "API Testing and Validation" from Keith Casey / @CaseySoftware.
The course was built using PHP 8.2 and Behat 3.12 and these instructions are designed for that combination.
- Ensure you have PHP installed. This course was built on PHP 8.2.x installed via Homebrew on a Mac.
- Ensure you have Composer installed.
- Download or clone this repository.
- On your command line, move to the
api-testing-workspace
directory. - Install your environment via
./composer.phar install
or equivalent depending on your Composer configuration. This will load Behat 3.12 and the Github SDK for you. - Run
vendor/bin/behat --init
to create the framework for your tests. - All of your code, feature specifications, etc will be in
api-testing-workspace
. If you ever get stuck, check out theapi-testing-course
directory for the completed solutions.
Note: Do not rename behat.dist.yml
to behat.yml
at this time. Once you do, Behat will look for additional information. You'll rename and configure that information during the course.
The PHP instructions are identical to the LinkedIn Learning instructions above.