PHPUnit Essentials

PHPUnit Essentials

Zdenek Machek


Get all started with PHPUnit and tips on how to write and try out code utilizing complicated technologies

About This Book

  • Learn easy methods to set up PHPUnit in addition to tips to write and execute tests
  • Understand the complicated thoughts of trying out utilizing attempt doubles and the continual integration process
  • A hands-on, step by step advisor filled with real-life examples that can assist you examine quick and effectively

Who This publication Is For

This publication is a pragmatic advisor that includes a step by step procedure that goals to aid Hypertext Preprocessor builders who are looking to examine or enhance their software program trying out abilities. It additionally takes you thru many real-life examples encountered through Hypertext Preprocessor builders that can assist you keep away from universal pitfalls.

What you are going to 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 the right way to exchange dependencies
  • Explore find out how to try out legacy code
  • Test code calling APIs and connecting to the database
  • Run sensible exams in an internet browser utilizing Selenium tests
  • Use assessments as a part of the continual integration process
  • Discover the choices to PHPUnit
  • Use PHPUnit checks within the Jenkins and Travis CI servers

In Detail

The skill to write down unit assessments and software program trying out became talents that each Hypertext Preprocessor developer should still master.

This publication is a realistic consultant to PHPUnit and unit checking out, masking all features of writing PHPUnit assessments and utilizing them. The ebook indicates why testable code is healthier code and the way to put in writing solid exams with assistance from uncomplicated and easy-to-understand examples.

With this publication, you are going to the right way to write, set up, and execute potent assessments. step by step strategies of ways to put in writing testable code, find out how to refactor the code, and the way to run your checks are proven. additionally, you will know about complex checking out ideas, together with easy methods to attempt databases, APIs, and legacy code. PHPUnit necessities is a advisor for Hypertext Preprocessor builders who are looking to research or increase their software program checking out talents. it's a e-book for builders who commence with checking out yet can be a very good resource of knowledge for builders who're already acquainted with PHPUnit.

Show sample text content

Download sample