[horde] Tests fail to run with repo Horde/Mail
Mike
barjunk at attglobal.net
Fri Apr 24 11:16:05 UTC 2026
Ralf,
I had to apply: composer require horde/util:dev-FRAMEWORK_6_0#dd43607
In order to get rid of some failures that were present without it.
Also, I got the '/nonexistent/sendmail: not found' when running the tests:
vendor/bin/phpunit
PHPUnit 11.5.55 by Sebastian Bergmann and contributors.
Runtime: PHP 8.5.5
Configuration: /var/www/mail/phpunit.xml.dist
......D....DD....DDDD.........D....D.DDD.SDDDDDD.........D...DD 63 /
403 ( 15%)
.........................D.......SSSSSSSSSSDD.....DD....D.DD.D. 126 /
403 ( 31%)
.D..DDDDD...................................................... 189 /
403 ( 46%)
............................................................... 252 /
403 ( 62%)
............................................................... 315 /
403 ( 78%)
.........................................D..................... 378 /
403 ( 93%)
...............sh: 1: /nonexistent/sendmail: not found
.......... 403 / 403 (100%)
Time: 00:02.437, Memory: 18.00 MB
OK, but there were issues!
Tests: 403, Assertions: 669, Deprecations: 1, PHPUnit Deprecations:
10, Skipped: 12.
Quoting Ralf Lang <ralf.lang at gmail.com>:
> Hi Mike, I did a major upgrade of the test suite this night. Please test
> again.
>
> On Thu, Apr 23, 2026 at 8:34 PM Mike <barjunk at attglobal.net> wrote:
>
>>
>> When I try and run tests for Horde/mail using phpunit, I get this:
>>
>> vendor/bin/phpunit
>> PHPUnit 11.5.55 by Sebastian Bergmann and contributors.
>>
>> Runtime: PHP 8.5.5
>> Configuration: /var/www/mail/phpunit.xml.dist
>>
>> ........EEEEEEEEEEEEE...............EEE.ESE.................... 63 /
>> 158 ( 39%)
>> .E.EFE.......SSSSSSSSSSF......EEE............EEE.....EEEEEEEEEE 126 /
>> 158 ( 79%)
>> EEEEEEEEEEEEEEEEEEEEEEEEEEEEES.. 158 /
>> 158 (100%)
>>
>> Time: 00:00.078, Memory: 10.00 MB
>>
>> There were 66 errors:
>>
>> 1) Horde\Mail\AddressTest::testPersonalEncoded with data set #0 ('Foo
>> <foo at example.com>', 'Foo')
>> Error: Class "Horde\Mail\Rfc2047" not found
>>
>> <snip a bunch more errors>
>>
>> All these errors refer to that same class, and I can see the file DOES
>> exist in src/
>>
>> I tried a few changes in composer.json and/or phpunit.xml.dist, but
>> couldn't get it to work.
>>
>> I'm not sure why it isn't finding that file.
>>
>> Something must be wrong with my setup. My assumption is that
>> composer.json and phpunit.xml.dist are correct in the repo.
>>
>> Mike
>> --
>> Horde mailing list
>> Frequently Asked Questions: http://horde.org/faq/
>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>
More information about the horde
mailing list