Php5.4 functionality & unit testing