By Zdenek Machek
Get began with PHPUnit and how to write and try out code utilizing complicated technologies
About This Book
- Learn how one can set up PHPUnit in addition to the best way to write and execute tests
- Understand the complex innovations of trying out utilizing attempt doubles and the continual integration process
- A hands-on, step by step consultant packed with real-life examples that will help you study speedy and effectively
Who This e-book Is For
This publication is a realistic consultant that includes a step by step process that goals to assist personal home page builders who are looking to examine or enhance their software program trying out abilities. It additionally takes you thru many real-life examples encountered by means of personal home page builders that can assist you steer clear of universal pitfalls.
What you'll Learn
- How to put in PHPUnit and configure IDEs for PHPUnit support
- What are unit checks and why to check code
- Write attempt doubles and methods to substitute dependencies
- Explore tips to attempt legacy code
- Test code calling APIs and connecting to the database
- Run useful checks in an internet browser utilizing Selenium tests
- Use exams as a part of the continual integration process
- Discover the choices to PHPUnit
- Use PHPUnit assessments within the Jenkins and Travis CI servers
The skill to write down unit exams and software program checking out became abilities that each personal home page developer should still master.
This publication is a realistic advisor to PHPUnit and unit checking out, overlaying all points of writing PHPUnit assessments and utilizing them. The publication indicates why testable code is healthier code and the way to write down solid checks with the aid of uncomplicated and easy-to-understand examples.
With this booklet, you'll find out how to write, manage, and execute powerful assessments. step by step suggestions of the way to write down testable code, the right way to refactor the code, and the way to run your exams are proven. additionally, you will know about complicated checking out thoughts, together with find out how to try out databases, APIs, and legacy code. PHPUnit necessities is a advisor for Hypertext Preprocessor builders who are looking to study or enhance their software program trying out abilities. it's a publication for builders who commence with trying out yet is usually a great resource of knowledge for builders who're already acquainted with PHPUnit.