Test will not run on PHP 5.2 anymore. Revert "fix. Avoid anonymous function error on PHP 5.2"

This reverts commit 5d7b56116e03d56dc627e101e8730f5e3fe471a8.