[#15008] Deprecation warning with php 7.4.5
Summary Deprecation warning with php 7.4.5
Queue Horde Framework Packages
Type Enhancement
State New
Priority 1. Low
Owners
Requester cheese@nosuchhost.net
Created 2020-04-30 (455 days ago)
Due
Updated 2020-04-30 (455 days ago)
Assigned
Resolved
Milestone
Patch No

Comments
cheese@nosuchhost.net 2020-04-30 06:32:35
i get an error and deprecation warnings with php 7.4.5 (as delivered 
with fedora 32) while running tests against Activesync 2.41.3:

+ cd Horde_ActiveSync-2.41.3/test/Horde/ActiveSync
+ phpunit --bootstrap bootstrap.php -d date.timezone=UTC .
PHPUnit 5.7.27 by Sebastian Bergmann and contributors.
I.I.IE...WW..WWWW..WWW.WWWWI.....III........I.......SSSSSSSSSSS  63 / 
187 ( 33%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 126 / 
187 ( 67%)
SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSWWWWWWWWWWWWWWWWWWWWWI.I   187 / 
187 (100%)
Time: 1.35 seconds, Memory: 14.00MB
There was 1 error:
1) Horde_ActiveSync_AppointmentTest::testAlldayEncoding
Trying to access array offset on value of type null
/builddir/build/BUILD/php-horde-Horde-ActiveSync-2.41.3/Horde_ActiveSync-2.41.3/lib/Horde/ActiveSync/Wbxml/Decoder.php:305
/builddir/build/BUILD/php-horde-Horde-ActiveSync-2.41.3/Horde_ActiveSync-2.41.3/lib/Horde/ActiveSync/Wbxml/Decoder.php:291
/builddir/build/BUILD/php-horde-Horde-ActiveSync-2.41.3/Horde_ActiveSync-2.41.3/lib/Horde/ActiveSync/Wbxml/Decoder.php:147
/builddir/build/BUILD/php-horde-Horde-ActiveSync-2.41.3/Horde_ActiveSync-2.41.3/lib/Horde/ActiveSync/Message/Base.php:353
/builddir/build/BUILD/php-horde-Horde-ActiveSync-2.41.3/Horde_ActiveSync-2.41.3/test/Horde/ActiveSync/AppointmentTest.php:250
--
There were 34 warnings:
1) Horde_ActiveSync_AppointmentTest::testMissingSupportedTag
PHPUnit_Framework_TestCase::getMock() is deprecated, use 
PHPUnit_Framework_TestCase::createMock() or 
PHPUnit_Framework_TestCase::getMockBuilder() instead
2) Horde_ActiveSync_AppointmentTest::testEmptySupportedTag
PHPUnit_Framework_TestCase::getMock() is deprecated, use 
PHPUnit_Framework_TestCase::createMock() or 
PHPUnit_Framework_TestCase::getMockBuilder() instead
3) Horde_ActiveSync_CacheTest::testPropertyAccess
PHPUnit_Framework_TestCase::getMock() is deprecated, use 
PHPUnit_Framework_TestCase::createMock() or 
PHPUnit_Framework_TestCase::getMockBuilder() instead
4) Horde_ActiveSync_CacheTest::testInvalidPropertyAccess
...
ERRORS!
Tests: 187, Assertions: 332, Errors: 1, Warnings: 34, Skipped: 111, 
Incomplete: 10.