N
N
nepster-web2017-07-06 15:50:49
PHP
nepster-web, 2017-07-06 15:50:49

Is it possible to change the trait in the test?

I have a class, part of the functionality in which implements trait.
To test everything, you need to replace this trait with your own (test).
How can I do that ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Grigory Esin, 2017-07-06
@nepster-web

Create a test successor of the class and in the successor you can overload the methods of the trait

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question