Answer the question
In order to leave comments, you need to log in
Why doesn't PHPunit see tests?
Bitrix has the following structure
- ...
- local
- tests
- unit
- BitrixTestCase.php
- bootstrap.php
- phpunit.xml.dist
- vendor
- ...
<phpunit
bootstrap="bootstrap.php"
colors="true">
<testsuites>
<testsuite name="Test">
<directory>./unit</directory>
</testsuite>
</testsuites>
</phpunit>
<file>./unit/BitrixTestCase.php</file>
Answer the question
In order to leave comments, you need to log in
PhpUnit looks for files with the Test.php suffix by default. Your file has the TestCase.php suffix - such classes should not contain tests at all, the auxiliary code is usually there.
I am confused by this
phpunit.xnl.dist and phpunit.xml.dist
Two different names
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question