fix for browser-based tests in php 5.3
Merge pull request #922 from pixelcog/fix-tests

Fix for Browser-Based Tests in PHP 5.3