add generated test and sample for composer.lock
recognize composer.lock as generated file
Merge pull request #818 from Flyingmana/patch-1

recognize composer.lock as generated file