Unit Test Url::to

Hi all, anyone know how to test Url::to in codecept unit test ?

any example ?

I don’t know why would you want to test Url::to, I advise against writing tests for code that is not part of your application.

Actually the one I need to test is not the Url::to but functional of the url_rule, is the url rule array I applied is in good pattern and sequence

how’s the best practice to do that ?