France has this law. The US has it too if the man signs the birth certificate, and there's no way to force a paternity test.