Closed oceanicpanda closed 3 years ago
The structure we use in Rector is the "before". The files and directories should be updated to match it.
Typical structure looks like this:
/tests
/Rector
/SomeSpecificRector
/config # all the configs go here
/Fixture # all the tested files go here
SomeSpecificRectorTest.php # the test itself
Ah, I see it now. This is how you need to update your structure:
/tests
/Rector
/SomeSpecificRector
/config # all the configs go here
/Fixture # all the tested files go here
- SomeSpecificRectorTest.php # the test itself
+ SomeSpecificRectorTest.php # the test itself
We'll show this example in the book, so it's more clear. Thank you for feedback :+1:
Code Improvement
I think code on page 79 could be improved. Using the exact file/folder structure provided in the text I receive the following if I do not also include the name of my Rector in the file path:
utils/Rector/Test/Fixture" directory does not exist.
I propose this change
Thanks!