D
D
Denis2020-01-06 19:52:57
PHP
Denis, 2020-01-06 19:52:57

Phpunit using fixtures?

How to properly include fixture files in tests? As I understand fixtures, if I understand correctly, let's say - the expected value or the original value for comparison in tests. Everything in the project is connected via autoload composer. How to cut them to the tests correctly? via require? It’s just that at the moment I’m only testing functions without classes and, accordingly, store variable values ​​​​in fixtures. Arrays, Jasons, etc. Or how is it possible through autoload files or something else?))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
great_77, 2020-01-07
@great_77

unit tests don't need fixtures

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question