PHPUnit test environment initialising problem