Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Instant Hands-on Testing with PHPUnit How-to
  • Table Of Contents Toc
  • Feedback & Rating feedback
Instant Hands-on Testing with PHPUnit How-to

Instant Hands-on Testing with PHPUnit How-to

By : Michael Lively
4.3 (12)
close
close
Instant Hands-on Testing with PHPUnit How-to

Instant Hands-on Testing with PHPUnit How-to

4.3 (12)
By: Michael Lively

Overview of this book

No developer wants to accept the inherent difficulty of writing software as an excuse for not finding the bugs in our code before anyone else does. PHPUnit is a framework that was created to allow developers to solve that very problem. It provides a feature-rich environment with most of the tools necessary to provide adequate tests for any project. "Instant Hands-on Testing with PHPUnit How-to" provides a thorough overview of the functionality provided by the PHPUnit framework. It shows how the plethora of features in the framework can be used to write tests for real world projects to ensure they function and will continue to function in the ways that you expect. This book will show how you can set up the scaffolding necessary to run unit tests in your project with PHPUnit. It will walk you through the process of how to write a basic test and how to maintain your project's test suite. You will learn how to use some of the more advanced features of PHPUnit and then see how you can use mock objects to isolate the code you are testing. We will then discover how to create tests that verify your interaction with databases and even see how you can use PHPUnit to understand which code you are actually testing. At the end of the book you will have all of the basic understanding necessary to begin adding tests to your project. This book provides a great foundation for becoming a expert at writing unit tests.
Table of Contents (7 chapters)
close
close

Chapter 1. Instant Hands-on Testing with PHPUnit How-to

Welcome to Instant Hands-on Testing with PHPUnit How-to. PHPUnit is one of the most widely used unit testing frameworks for PHP. It gives developers all the tools necessary to write easy-to-maintain tests. It also gives developers the ability to easily run those tests. This book will give you the knowledge necessary to use these tools in your PHP projects.

We will be going through the process of installing PHPUnit, writing some simple tests, integrating it with a new project, as well as looking into some of the more advanced functionality that PHPUnit is capable of.

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Instant Hands-on Testing with PHPUnit How-to
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon