transformed unittest to phpunit