By Zdenek Machek
Get begun with PHPUnit and the way to write and attempt code utilizing complex technologies
About This Book
- Learn how one can set up PHPUnit in addition to how you can write and execute tests
- Understand the complex techniques of checking out utilizing try doubles and the continual integration process
- A hands-on, step by step advisor packed with real-life examples that will help you examine quick and effectively
Who This booklet Is For
This booklet is a pragmatic advisor that includes a step by step technique that goals to aid Hypertext Preprocessor builders who are looking to study or enhance their software program trying out abilities. It additionally takes you thru many real-life examples encountered via Hypertext Preprocessor builders that will help you keep away from universal pitfalls.
What you'll Learn
- How to put in PHPUnit and configure IDEs for PHPUnit support
- What are unit exams and why to check code
- Write try out doubles and the right way to substitute dependencies
- Explore the right way to attempt legacy code
- Test code calling APIs and connecting to the database
- Run sensible exams in an internet browser utilizing Selenium tests
- Use checks as a part of the continual integration process
- Discover the choices to PHPUnit
- Use PHPUnit exams within the Jenkins and Travis CI servers
The skill to put in writing unit checks and software program checking out became talents that each Hypertext Preprocessor developer may still master.
This booklet is a pragmatic advisor to PHPUnit and unit trying out, masking all facets of writing PHPUnit exams and utilizing them. The booklet exhibits why testable code is healthier code and the way to put in writing solid checks with assistance from uncomplicated and easy-to-understand examples.
With this ebook, you'll write, manage, and execute powerful checks. step by step strategies of ways to jot down testable code, the right way to refactor the code, and the way to run your exams are proven. additionally, you will know about complex checking out innovations, together with the way to attempt databases, APIs, and legacy code. PHPUnit necessities is a consultant for personal home page builders who are looking to examine or increase their software program trying out talents. it's a e-book for builders who start with trying out yet can also be an outstanding resource of data for builders who're already acquainted with PHPUnit.