Learn how to use PHPUnit to write and test code using Packt’s new book and eBook

May 2014 | Open Source, PHP

Packt is pleased to announce the release of its new book on PHP: PHPUnit Essentials. A hands-on, step-by-step guide, this book will teach developers how to drastically improve their software testing skills. Filled with real-life examples, developers will also learn about the advanced concepts of testing.

About the author: Zdenek Machek is an experienced PHP developer who has been working with PHP since 2000. He has introduced software testing and PHPUnit to various companies and utilized them on various small- and large-scale projects. Zdenek has also written several articles and blog posts focused on Continuous Integration processes during PHP application development. Currently, he leads technology standards and values across his current organization, and also handles the analysis, planning, and technical delivery of large-scale, critical, and high performance systems for the organization’s most complex projects.

PHPUnit Essentials is a practical guide that introduces readers to what PHPUnit has to offer to improve their software testing skills. This book will teach readers how to test their codes and write good test codes, which are essential skills that every PHP developer should master. Filled with simple and easy-to-understand examples, PHPUnit Essentials covers all aspects of writing test codes.

Readers will also learn how to refactor their code, how to run tests from the command line, explore how to test legacy code, use PHPUnit tests in Jenkins and Xinc servers, and much more. This book also delves into making use of the PHP mock object framework called Mockery.

The book consists of the following chapters:

Chapter 1: Installing PHPUnit

Chapter 2: PHPUnit Support in IDEs

Chapter 3: Tests and What They're All About

Chapter 4: Testing Dependencies and Exceptions

Chapter 5: Running Tests from the Command Line

Chapter 6: Test Isolation and Interaction

Chapter 7: Organizing Tests

Chapter 8: Using Test Doubles

Chapter 9: Database Testing

Chapter 10: Testing APIs

Chapter 11: Testing Legacy Code

Chapter 12: Functional Tests in the Web Browser

Chapter 13: Continuous Integration

Chapter 14: PHPUnit Alternatives, Extensions, Relatives, and BDD

Developers with some knowledge of PHP will find this book to be a valuable resource for learning and improving their software testing skills. Experienced PHP developers will learn how to put PHPUnit to use for developing web applications. For more information on this book, please visit: http://www.packtpub.com/learn-how-to-write-and-test-codes-using-phpunit-essentials/book

PHPUnit Essentials
Learn how to install PHPUnit as well as how to write and execute tests

For more information, please visit: PHPUnit Essentials

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software