PHP Unit Testing with PHPUnit Tutorial

PHP Unit Testing with PHPUnit Tutorial

Gary Clarke via YouTube Direct link

The setUp method

14 of 22

14 of 22

The setUp method

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

PHP Unit Testing with PHPUnit Tutorial

Automatically move to the next video in the Classroom when playback concludes

  1. 1 Introduction / overview
  2. 2 Install PHPUnit
  3. 3 Create a test file
  4. 4 Run a test from the command line
  5. 5 Making assertions
  6. 6 Tests which fail
  7. 7 Using colors in test feedback
  8. 8 Testing objects and classes
  9. 9 Using the '@test' annotation
  10. 10 Using filter option to run individual tests
  11. 11 Configuring phpunit usng phpunit.xml
  12. 12 Autoloading classes in tests
  13. 13 Test scope
  14. 14 The setUp method
  15. 15 The tearDown method
  16. 16 Testing errors and exceptions
  17. 17 Test doubles
  18. 18 Creating mock objects
  19. 19 Mocking methods
  20. 20 Injecting mock test dependencies
  21. 21 Test number of times a method is expected to be called
  22. 22 Grouping tests

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.