I found it incredibly easy to write a custom rule for my project. (Thank you!) However, I found it challenging to write PHPUnit tests for that custom rule.
I think \TwigCsFixer\Tests\Rules\AbstractRuleTestCase (and maybe other test cases) should be moved from tests/ to src/ so that it is available when installed as a Composer dependency.
Unless there's a way to do this that I'm missing. Thoughts?
Expected behavior
I can extend \TwigCsFixer\Tests\Rules\AbstractRuleTestCase in my own codebase.
Actual behavior
\TwigCsFixer\Tests\Rules\AbstractRuleTestCase does not exist.
I found it incredibly easy to write a custom rule for my project. (Thank you!) However, I found it challenging to write PHPUnit tests for that custom rule.
I think
\TwigCsFixer\Tests\Rules\AbstractRuleTestCase
(and maybe other test cases) should be moved fromtests/
tosrc/
so that it is available when installed as a Composer dependency.Unless there's a way to do this that I'm missing. Thoughts?
Expected behavior
I can extend
\TwigCsFixer\Tests\Rules\AbstractRuleTestCase
in my own codebase.Actual behavior
\TwigCsFixer\Tests\Rules\AbstractRuleTestCase
does not exist.