PHP OpenSwoole HTTP Server - API Part 1 - Tests

2 years ago
2

9 minutes of PHP OpenSwoole HTTP Server - API Part 1 - Tests

Let's create an API with our App! In this part 1, let's scaffold the tests.

Source: https://github.com/lotharthesavior/sample-swoole/tree/043664a326bcc569f6c6b3c727c5139e6c164a87

Previous part: https://youtu.be/xpxc2NDJ0EU

- API Tests

This video is the first video of a sequence of videos over API topics. Here we add the basic structure and the first test for our API.

Packages added here:

- nekofar/slim-test (https://github.com/nekofar/slim-test)
- phpunit/phpunit (https://phpunit.de/)
- codedungeon/phpunit-result-printer (https://github.com/mikeerickson/phpunit-pretty-result-printer)

Loading comments...