There are tools you absolutely need to be successful in this course. Luckily, they only take a few minutes to install.
- [Instructor] To follow along with the testing and validation in this course, you'll need a few tools. All of them are freely available to download and use. First, since this is a PHP course, you'll need PHP and more specifically, PHP 7 1 or above. Please note that all versions of PHP 5 are deprecated and not recommended for production use. If you're still using PHP 5, please upgrade. In my case, I was able to update a 200,000 line of code app by changing seven lines.
It's not bad, please just do it. Further, I recommend you install PHP via package manager or a common installer. Later, we'll install it via MAMP. Next, you'll need a text editor. You can use a full IDE like PHP Storm or a simpler environment like Sublime Text, or even Vim or Notepad, that's entirely up to you. Next, you'll need a library to make HTTP requests. This is probably Guzzle, though the curl extension and even raw streams context can work too.
There are also some PHP libraries from Github that we can use here, but we're going to keep it simple for now. Finally, you'll need Behat, which is the core to what we'll use going forward. We'll install it in our next chapter.
- The benefits of behavior testing
- Setting up a test environment
- Building your first API test
- Sending requests
- Validating response codes and payload
- Making authenticated requests
- Refactoring tests
- Writing to the API
- Establishing a system state for tests
- Using extensions
- Performing batch operations