Unit testing with PHP Unit. If you are a PHP developer and you want to learn how to write better code, with fewer bugs, you will need to know how to write unit tests.
Learning how to write unit tests for your code will make you write better code. With automated tests, you can find bugs more easily, and if you break something you’ll notice it straight away.
Learn how to unit test your PHP code using the PHPUnit testing framework.
Use test doubles: mocks and stubs, including how to use Mockery
Many experienced developers write unit tests for their code. It’s a repeatable way of checking that the code works as intended, and also serves as documentation. Many popular PHP projects are unit tested, such as WordPress and Moodle, and if you use frameworks such as Laravel or Symfony, these provide tight integration with the PHPUnit testing framework.
Write automated tests for your functions and classes
Write better code with less bugs, in less time
Develop code using test-driven development
Know that the code you write works how you want it to
Course Content
Unit testing with PHPUnit
Introduction
00:00
Testing a Calculator: Division
00:00
Testing a Calculator: Addition
00:00
Testing a collection class
00:00
Using the setUp method
00:00
Clearing up test method names
00:00
Testing a User model
00:00
Writing your first test
00:00
Setting up PHPUnit
00:00
Testing a Calculator: Finishing up
00:00
Student Ratings & Reviews
No Review Yet
Each day we give 100 discount coupons to the first 100 new visitors to our website. To benefit from this offer, use this coupon code 1DF835024E to get 20% discount on your first order.