mpociot / laravel-test-factory-helper

Generate Laravel test factories from your existing models
936 stars 87 forks source link

Need to add opening php tag to ModelFactory.php (when file doesn't already exist) #3

Closed mcampbell508 closed 8 years ago

mcampbell508 commented 8 years ago

Currently, if you run the php artisan test-factory-helper:generate command, and the database/factories/ModelFactory.php does not exist before running the command, the model factories are generated correctly, but there is no opening <?php on the newly created database/factories/ModelFactory.php file.

I don't have an example to show but I have tested it on 2 separate projects, without the ModelFactory.php pre-existing in both projects.