phpunit testing prepairing