migrate to phpunit