passing unit test for php 5.4+