Migrate PhpUnit to Hacktest methods that start with `should` instead of `test`.
danon opened this issue · comments
Daniel Wilkowski commented
My all tests in PhpUnit start with should
instead of test
, and they also have @test
annotation.
Is there a way I can use your migrate
tool?
Fred Emmott commented
It would probably be easiest to use sed
or IDE global find-and-replace to replace function should
with function test
, or function testThat
(whatever makes sense for hte majority of your function names), then use the migration tool
Daniel Wilkowski commented
Yea, you night not believe, but I've already thought about that.
So, your answer is no?
Fred Emmott commented
No, the migration does not currently support this.
Feel free to file an issue or send a pull request over at https://github.com/hhvm/hhast to add support for renaming @test
methods to start with test