4.6: unit tests are broken? Missing `Zotlabs/Tests`
Files in tests
refer to missing Zotlabs\Tests\Unit\UnitTestCase
:
$ ack Unit.UnitTestCase tests/
tests/unit/Access/AccessListTest.php
26:use Zotlabs\Tests\Unit\UnitTestCase;
tests/unit/Access/PermissionLimitsTest.php
27:use Zotlabs\Tests\Unit\UnitTestCase;
tests/unit/Access/PermissionRolesTest.php
26:use Zotlabs\Tests\Unit\UnitTestCase;
tests/unit/Access/PermissionsTest.php
27:use Zotlabs\Tests\Unit\UnitTestCase;
tests/unit/Lib/PermissionDescriptionTest.php
27:use Zotlabs\Tests\Unit\UnitTestCase;
tests/unit/Photo/PhotoGdTest.php
7:use Zotlabs\Tests\Unit\UnitTestCase;
tests/unit/Web/HttpSigTest.php
27:use Zotlabs\Tests\Unit\UnitTestCase;
tests/unit/includes/FeedutilsTest.php
5:use Zotlabs\Tests\Unit\UnitTestCase;
tests/unit/includes/LanguageTest.php
26:use Zotlabs\Tests\Unit\UnitTestCase;
tests/unit/includes/MarkdownTest.php
26:use Zotlabs\Tests\Unit\UnitTestCase;
tests/unit/includes/PhotodriverTest.php
6:use Zotlabs\Tests\Unit\UnitTestCase;
tests/unit/includes/TextTest.php
5:use Zotlabs\Tests\Unit\UnitTestCase;
tests/unit/includes/dba/DBATest.php
26:use Zotlabs\Tests\Unit\UnitTestCase;
But there is no Tests
folder in Zotlabs...
The only UnitTestCase.php
is in tests/unit/UnitTestCase.php
.
If this is not a mistake then how to run tests in tests/phpunit.xml
with phpunit
??
According to README running phpunit tests/unit/
should work but
$ phpunit tests/unit/
PHP Fatal error: Uncaught Error: Class 'Zotlabs\Tests\Unit\UnitTestCase' not found
Also vendor/bin have no phpunit
. Was it a wrapper with some undocumented custom options?