Home | Back to Courses

PHP Unit Testing with PHPUnit

Course Image
Partner: Udemy
Affiliate Name:
Area:
Description: 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.Learn how to unit test your PHP code using the PHPUnit testing framework.Learn what unit tests areLearn how to write unit tests using PHPUnitBuild a test suite for PHP functions and classesMake test methods dependent on each otherUse test doubles: mocks and stubs, including how to use MockeryLearn how and why you should use dependency injectionLearn test-driven development (TDD)Learn how to test protected and private methods and properties (and whether you actually should or not!)Learn how to test abstract classesA skill that will enable you to write higher quality code, in a shorter time, with better documentation and fewer bugs.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 straight away.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.Content and OverviewHow do you currently test your code? Maybe you run your code in a browser, use var_dump a lot and so on. The problem with this is that you only tend to test new code - you don't go back and test old code. What if you add some new code that breaks the old code?With automated unit tests, you have more control. If your new code bre
Category: Development > Web Development > PHPUnit
Partner ID:
Price: 69.99
Commission:
Source: Impact
Go to Course