Closed olivernybroe closed 4 years ago
Hey @TomasVotruba, you told me a while ago to tag you with a failing test case for string interpolation conversion 👍
Any pointers on how to solve this would be really nice, we have a failing test in our testsuite right now for this.
Hi, could you link me to the Rector rule + failing line in CI?
Thank you. I've used all the links :)
Right now we have a test which fails because we are trying to migrate a class method to a pest helper method.
However the original class method was used in string interpolation which is not supported by functions, so the string interpolation has to be split up, so it can use the pest helper.
Example: We have the following php class
Which should be converted to
Because doing
"{alwaysTrueHelper()} works";
is not valid php code.Fixture file: https://github.com/pestphp/drift/blob/master/tests/fixtures/PHPUnit/ClassMethod/HelperMethodRector/phpunit_method_to_pest_helper_used_in_string_interpolation.php.inc