A
A
alexfyodrv2018-07-04 11:25:23
Laravel
alexfyodrv, 2018-07-04 11:25:23

Laravel 5.6 how to check if application is running via phpunit?

Tell me, how can I check that the application is running through phpunit? If this is a test, certain code should be ignored.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Camaro67, 2018-07-04
@alexfyodrv

The test APP_ENVis set to testingif you didn't change the value in phpunit.xml.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question