Jump to ratings and reviews
Rate this book

Hands-on Testing with PHPUnit How-to

Rate this book
Overview:
* Details the most important features of C++, XAML, and WinRT for building fantastic Windows Store apps
* Full of detailed and engaging code samples that can be used as a basis for your own projects
* Provides a clear overview of Windows Runtime and C++/CX


What you will learn from this book


* Leverage your existing C++ skills with this new and exciting platform
* Discover how to effectively use C++/CX to call Windows Runtime APIs
* Integrate XAML for fast and fluid user interfaces
* Create custom controls for special UI scenarios
* Learn how to integrate your application with Windows 8 by implementing contracts
* Build data-driven apps with XAML, data binding, and MVVM

In Detail

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.

Approach

Filled with practical, step-by-step instructions and clear explanations for the most important and useful tasks. This is a Packt Instant How-to guide, which provides concise and clear recipes for getting started with PHPUnit for performing code testing and improving code quality.


Who this book is for

"Instant Hands-on Testing with PHPUnit How-to" is for PHP developers that have an appreciation for writing accurate code. If you are new to PHPUnit, it will give you a solid foundation for understanding how to use PHPUnit to write tests for your projects. If you already have a cursory understanding of PHPUnit it will whet your appetite for some of the more difficult-to-understand concepts in PHPUnit.

82 pages, ebook

First published May 23, 2013

1 person want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
1 (25%)
4 stars
2 (50%)
3 stars
0 (0%)
2 stars
1 (25%)
1 star
0 (0%)
Displaying 1 of 1 review
Profile Image for Ahmed Samy.
5 reviews
January 7, 2014
IF you are looking for TDD, this is not for you, it's more a showing by example and walk through PHP unit testing with real examples
Displaying 1 of 1 review

Can't find what you're looking for?

Get help and learn more about the design.