mcbates's avatar

Customize test stub with test annotation instead of having to prefix test_?

Is there an easy way to swap the comments in test stubs that artisan creates (php artisan make:test ExampleTest)?

So, whenever I create a test, instead of

/**
    * A basic feature test example.
    *
    * @return void

I would like (per default)

 /** @test */

I change it dozens of times per day and would love to automate it.

(Sidenote: In 80% of TDD tutorials and videos I see - Adam Wathan etc. - they use @test, so I wonder why this is not the default)

0 likes
1 reply

Please or to participate in this conversation.