PHP Testing
Treehouse
Course Summary
You've been writing PHP code for a while, but every time you push your code into production, there's another bug! You have heard that there are tools you can use to test your code. Unit tests. Test-Driven Development. Mocks. All you want to know is: Can you figure these things out in time to help you stop working all these
-
+
Course Description
You've been writing PHP code for a while, but every time you push your code into production, there's another bug!You have heard that there are tools you can use to test your code. Unit tests. Test-Driven Development. Mocks. All you want to know is: Can you figure these things out in time to help you stop working all these late hours?This course will give you an understanding of how to use the most common PHP testing tools to create tests that will give you confidence that your code is working as expected.
Topics Covered
- How Can We Test Our Code?
Learn what Test Driven Development is all about!- Tools for Testers
Learn about the various tools for testing, including PHPUnit, the gold standard for unit testing PHP Code.- Your First Tests
You've learned the theory, now let's write some tests!- Organizing Your Tests
Learn how to organize your tests so you can get the most value from them.- Acceptance Tests
Learn the common tools that make Acceptance Tests easier to write, and well as the difference between Acceptance and Unit tests- .Test Doubles
Understanding the role of Test Doubles, can be challenging, but you cannot write effective unit tests without knowing where test doubles fit in. They are a great way to figure out if you need to refactor your code into smaller, more compact modules.
-
+
Course Syllabus
â— How Can We Test Our Code?â—¦ Design Patternsâ—¦ What is TDD?â—¦ PHPUnitâ— Tools for Testersâ—¦ Setting Up PHPUnitâ—¦ Configuring your PHPUnitâ— Your First Testsâ—¦ Bootstrapping Your Testing Environmentâ—¦ Building your test casesâ— Organizing Your Testsâ—¦ Covering Potential Outcomesâ—¦ Creating Scenariosâ—¦ Identifying Scenariosâ—¦ Assertionsâ— Acceptance Testsâ—¦ Acceptance Testsâ—¦ Using Data Providersâ—¦ DBUnitâ—¦ Loading Datasets for DBUnitâ—¦ Practical DBUnitâ—¦ Virtual File Systemsâ— Test Doublesâ—¦ Rule of Test Doublesâ—¦ The Challenge with Test Doublesâ—¦ 5 W's of Writing Effective Tests
This course is listed under
Open Source
, Development & Implementations
, IT Strategy & Management
, Project & Service Management
and Quality Assurance & Testing
Community
Related Posts: