I have some pages names index2.php, index3.php,..  

they are copies of my index.php, for testing purposes  

should I disallow these pages in robots.txt because of the double content?  

or it doesn't matter because these pages are not linked to on my website?  

if I get punished by google for the double content, how bad is it?