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 PhpStorm Cookbook
  • Table Of Contents Toc
PhpStorm Cookbook

PhpStorm Cookbook

By : Mukund Chaudhary
1 (2)
close
close
PhpStorm Cookbook

PhpStorm Cookbook

1 (2)
By: Mukund Chaudhary

Overview of this book

If you are a competent PHP developer who knows the basics of PHPStorm and intends to gain better knowledge of PHPStorm by learning and implementing pro-level practices, techniques, and solutions, then this book is for you. It is assumed that you already have a working installation of the software setup.
Table of Contents (11 chapters)
close
close
10
Index

Test case in PHPUnit

Having installed PHPUnit successfully, your challenge is not over yet—it has just led to another array of challenges. Testing is no easy task, but it is interesting. Just as you love writing beautiful PHP code, you will love writing test cases in PHPUnit because it is just like writing PHP code while taking care of some conventions.

A test case is a piece of an application that is written specifically to check (or test) for certain conditions in another application. Thus, when you write down a test case, you actually write a PHP code to test if something has gone wrong in other PHP code (which happens to be the code you have written to meet the business requirements).

Here, it is quite important to state that you, the programmer, usually have the following point of view:

  • You think that since you know your code very well you know that your code is errorless
  • Even if there are some errors in your code, since you know the code deeply, you can fix it in a flash
  • You think...
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.
PhpStorm Cookbook
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