In this video, you will learn how to install & configure PHPUnit, how to write unit tests, data providers & so on. Note that this is part one of a two-part video and in the next video we'll do more testing along with things like stubs, mocking & test doubles.
SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
👍 Smash the like button
🤝 Subscribe to the channel & turn the notifications on
💬 Post comments, any feedback is greatly appreciated
⭐ Become a Patreon: [ Ссылка ]
THANK YOU!
🛠️ TOOLS & SERVICES I USE
Digital Ocean Hosting - Get 100$ credit - [ Ссылка ]
Domains on Namecheap - [ Ссылка ]
Envato Elements - [ Ссылка ]
LESSON 3.1
Course Outline - [ Ссылка ]
Course Playlist - [ Ссылка ]-
RESOURCES
Docs - [ Ссылка ]
Video about comparing objects - [ Ссылка ]
Source Repo - [ Ссылка ]
TABLE OF CONTENTS
00:00 - Install PHPUnit
02:22 - PHPUnit Configuration
03:56 - Writing Unit Tests
12:08 - Share test setup code (setup method)
14:33 - Data providers & testing exceptions
22:11 - External data providers & test class autoloading
25:14 - More tests
27:56 - Strict comparison vs loose comparison in tests (assertEquals vs assertSame)
** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.
Ещё видео!