Tag Archives: php

Database Fixtures for Isolated Testing in PHP

Long ago, Ryan wrote the history of our fixture frameworks. Now, you too can have the awesome Team Lazer Beez database fixture for your own project. With the release of Team Lazer Beez Open Source (formerly Genius Open Source) version 1.2, our YAML-backed, easy-to-setup fixture framework has been integrated into the gosTest framework. Here is […]

Making PHP Regex Errors Real

PHP employs Perl Compatible Regular Expressions (PCRE) in the built-in collection of preg_* functions, such as preg_match(). While PCRE is certainly the preferred regular expression library, PHP’s implementation allows the functions to fail without any explicit warning—the user must check preg_last_error() to know that an error occurred. Often, the return of a regular expression match […]

Xdebug Quickstart: Profiling in PHP

Profiling PHP with Xdebug.

PHPUnit Mastery

How to maximize PHPUnit with standardized test names and the –filter, –coverage-html, and –testdox options

Favorite Web Development Tools

Overview of tools that make developing and testing rich web applications much easier.

YAML Gotchas

Overview of intricacies of the YAML serialization format. How to avoid beating your head against the wall trying to debug datatype and parsing issues.