PHP Unit Testing with PHPUnit Live Training Course

In this course, Unit Testing with PHPUnit, you’ll learn to write unit tests in PHP. First, you’ll explore the fundamentals of unit tests and PHPUnit itself. Next, you’ll discover how to write better tests using mocks. Finally, you’ll learn how to track your code coverage and run tests using continuous integration. When you’re finished with this course, you’ll have the skills and knowledge of PHPUnit needed to increase the quality of your PHP applications.

Training by
Live video
Requires prior
Knowledge
Max of
5 Persons
Professional
Certification

Requirements

  • Knowledge of Programming
  • Basic PHP Knowledge

Overview

In this course, Unit Testing with PHPUnit, you’ll learn to write unit tests in PHP. First, you’ll explore the fundamentals of unit tests and PHPUnit itself. Next, you’ll discover how to write better tests using mocks. Finally, you’ll learn how to track your code coverage and run tests using continuous integration. When you’re finished with this course, you’ll have the skills and knowledge of PHPUnit needed to increase the quality of your PHP applications.

What Will You Study

Local work environment setup

Composer

IDE Configuration

Fundamentals

Introduction to assertions

Using multiple Assertions

Correcting Bugs through Testing

Naming Conventions and Standards

PHPUnit XML configuration

Apply coloring console test output and testdox automatically

Organize test suite using XML configuration file

Create PHP constants in XML configuration file

Test dependencies, Fixtures, and Exceptions

Dependencies between tests

SetUp and TearDown

Text Fixture

Exceptions Test

Mocks and Stubs

Test doubles: create mock objects to remove dependencies on external resources

Dependency injection: inject objects that a class depends on

Test object interactions: verify how a dependency is used

Customize the creation of the mock object: the getMockBuilder method

TDD - Test-Driven development

Writing test before code

Targeted development test

Code refactor with tests

Advanced test

Protected / private methods

Attributes & nbsp; protected / private

Static methods

Pricing

Choose from à la carte sessions, structured packages, or create a custom plan to fit your unique goals and schedule

Starter

$180/4 hours
Save 6%
  • Initial goal-setting and assessment
  • Weekly one-on-one mentoring calls
  • Email support between sessions (2/week)
  • Recap summaries with action items
Get Started

Mastery

$960/24 hours
Save 17%
  • All Professional Growth features
  • Bi-weekly emergency consultation slots
  • Detailed quarterly progress reports
  • Project review sessions
  • Direct phone access (business hours)
  • Customized learning resources
Get Started

Get in touch

Phone Number

(44) 20-80891556

Email address

[email protected]

Mailing address

71-75 Shelton Street,

Greater, London

WC2H 9JQ,

United Kingdom