78174e6ad8
Add 1343 PHPUnit tests covering all services, controllers, entities, mappers, middleware, background jobs, and validators. Key changes: - Install PHPUnit 10, Nextcloud OCP stubs, doctrine/dbal, sabre/vobject as dev dependencies - Add test bootstrap with OC\Hooks\Emitter stub - Add TestInputStream stream wrapper for controller request body testing - Fix ImportService to handle empty file input gracefully - Fix existing test compatibility with PHPUnit 10 (withConsecutive removal) - Exclude migration files from coverage (DB schema, not business logic) - Coverage: 90.49% lines, 84.81% methods across 77 classes Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
24 lines
772 B
XML
24 lines
772 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
|
|
bootstrap="tests/bootstrap.php"
|
|
colors="true"
|
|
cacheDirectory=".phpunit.cache">
|
|
<testsuites>
|
|
<testsuite name="Unit">
|
|
<directory>tests/Unit</directory>
|
|
</testsuite>
|
|
<testsuite name="Integration">
|
|
<directory>tests/Integration</directory>
|
|
</testsuite>
|
|
</testsuites>
|
|
<coverage>
|
|
<include>
|
|
<directory suffix=".php">lib/</directory>
|
|
</include>
|
|
<exclude>
|
|
<directory suffix=".php">lib/Migration</directory>
|
|
</exclude>
|
|
</coverage>
|
|
</phpunit>
|