YoVDO

Symfony Tutorial - Test Driven Development Full Course - Learn TDD Using PHPUnit

Offered By: YouTube

Tags

Symfony Courses Web Development Courses Unit Testing Courses Database Management Courses Test-Driven Development Courses HTTP Requests Courses PHPUnit Courses

Course Description

Overview

Dive into an 80-minute tutorial on Test Driven Development (TDD) using PHPUnit in Symfony. Build a service that makes HTTP requests to an API and stores data in a database. Learn to create SQLite in-memory test databases, write unit and feature tests, develop console commands, and work with custom client classes. Explore integration testing, inject the Symfony HttpClient component, and utilize the Serializer component for entity deserialization. Master techniques for loosely coupled code, test fakes, and test group segmentation. Gain insights on handling non-200 status code responses, creating development databases with Symfony/Docker integration, and managing unexpected API errors. Access source code, additional resources, and social media links for further learning and support.

Syllabus

Introduction / course overview.
RapidAPI introduction.
Create a new Symfony project.
Create an SQLite in-memory test database.
Write the first unit test.
Part 2.
Write a feature test.
Create a console command.
Create custom client class for requesting an API.
Part 3.
Create an integration test.
Injecting the Symfony HttpClient component.
Ping the API .
Part 4.
Add the Symfony Serializer component.
Serializer component - deserialize into an entity.
Refactoring for loosely coupled code.
Create a test fake to mimic requesting the API during tests.
Segmenting tests into groups.
Part 5.
Test handling non 200 status code responses from the API.
Create development database using Symfony / Docker integration.
Part 6.
Serializer component - Update an existing entity.
Handling unexpected errors from an API.


Taught by

Gary Clarke

Related Courses

3D Graphics for Web Developers
Pompeu Fabra University via FutureLearn
Accessibility Audit
Amazon Web Services via AWS Skill Builder
Advanced React
Meta via Coursera
Advanced System Security Topics
University of Colorado System via Coursera
Apply advanced testing for your Django web application
Coursera Project Network via Coursera