[TASK] Replace calls to assertAttribute* methods of phpunit