M
M
Matvey Rumynin2020-07-10 17:38:03
symfony
Matvey Rumynin, 2020-07-10 17:38:03

Symfony, who has a good practice of writing unit tests on codeception?

Please help with codeception for symfony (version 3 and above).
I would be very grateful for links to good materials on the topic of writing unit tests or your own experience.
The practice is especially interesting, for example, how to work with dependencies (services) in the class under test from the test. Why you can / need to make stubs, and what you can access.
The issues of emulating an active user session are also very interesting.
Any experience, links to materials and code are interesting! Share plz!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
index0h, 2020-07-10
@index0h

https://github.com/index0h/php-conventions

D
Daria Motorina, 2020-07-10
@glaphire

Symfonycasts: testing with a bite is a great introductory course, written for phpunit, but codeception is written on top of phpunit and is easy to adapt. The project is there for SF 3.3.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question