form-request-tester icon indicating copy to clipboard operation
form-request-tester copied to clipboard

Testing with anonymous class

Open jacob418 opened this issue 1 year ago • 1 comments

In my project I have a number of traits for form requests. I like to test those traits individually. To achieve this I create anonymous classes within my test-cases, implementing example form requests with those traits.

Is there a way to make this possible with this package? I didn't see the possibility so far since I can only provide class names to $this->formRequest and anonymous classes don't have real names.

Ty for the good work, it has been a big help so far!

jacob418 avatar Oct 02 '23 14:10 jacob418

Hello @jacob418 I'm happy to consider such a feature. Can you please provide an example to make things clearer? so we build the right solution.

Thanks,

mohammedmanssour avatar Oct 05 '23 15:10 mohammedmanssour