Add support for PHPUnit 6 and 7 (#6870)

Fixes composer dependencies: Package phpunit/phpunit-mock-objects is abandoned

We cannot support v8 yet because of errors like:
Declaration of MailFunc::setUp() must be compatible with PHPUnit\Framework\TestCase::setUp(): void
It would require dropping PHP < 7.1 support.
pull/7135/head
Aleksander Machniak 4 years ago
parent ad84b2df3f
commit 47d9ed6d0c

@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail CHANGELOG Roundcube Webmail
=========================== ===========================
- Add support for PHPUnit 6 and 7 (#6870)
- Plugin API: Make actionbefore, before<action>, actionafter and after<action> events working with plugin actions (#7106) - Plugin API: Make actionbefore, before<action>, actionafter and after<action> events working with plugin actions (#7106)
- Managesieve: Replace "Filter disabled" with "Filter enabled" (#7028) - Managesieve: Replace "Filter disabled" with "Filter enabled" (#7028)
- Managesieve: Fix so modifier type select wasn't hidden after hiding modifier select on header change - Managesieve: Fix so modifier type select wasn't hidden after hiding modifier select on header change

@ -22,7 +22,7 @@
"endroid/qr-code": "~1.6.5" "endroid/qr-code": "~1.6.5"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^4.8.36 || ^5.7.21" "phpunit/phpunit": "^4.8.36 || ^5.7.21 || ^6 || ^7"
}, },
"suggest": { "suggest": {
"kolab/net_ldap3": "~1.1.1 required for connecting to LDAP", "kolab/net_ldap3": "~1.1.1 required for connecting to LDAP",

@ -1,6 +1,6 @@
<?php <?php
class Acl_Plugin extends PHPUnit_Framework_TestCase class Acl_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class AdditionalMessageHeaders_Plugin extends PHPUnit_Framework_TestCase class AdditionalMessageHeaders_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class Archive_Plugin extends PHPUnit_Framework_TestCase class Archive_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class AttachmentReminder_Plugin extends PHPUnit_Framework_TestCase class AttachmentReminder_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class Autologon_Plugin extends PHPUnit_Framework_TestCase class Autologon_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class DatabaseAttachments_Plugin extends PHPUnit_Framework_TestCase class DatabaseAttachments_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class DebugLogger_Plugin extends PHPUnit_Framework_TestCase class DebugLogger_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class Emoticons_Plugin extends PHPUnit_Framework_TestCase class Emoticons_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class EmoticonsEngine extends PHPUnit_Framework_TestCase class EmoticonsEngine extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class Enigma_Plugin extends PHPUnit_Framework_TestCase class Enigma_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class ExampleAddressbook_Plugin extends PHPUnit_Framework_TestCase class ExampleAddressbook_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class FilesystemAttachments_Plugin extends PHPUnit_Framework_TestCase class FilesystemAttachments_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class Help_Plugin extends PHPUnit_Framework_TestCase class Help_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class HideBlockquote_Plugin extends PHPUnit_Framework_TestCase class HideBlockquote_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class HttpAuthentication_Plugin extends PHPUnit_Framework_TestCase class HttpAuthentication_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class Identicon_Plugin extends PHPUnit_Framework_TestCase class Identicon_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class IdentitySelect_Plugin extends PHPUnit_Framework_TestCase class IdentitySelect_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class Jqueryui_Plugin extends PHPUnit_Framework_TestCase class Jqueryui_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class KrbAuthentication_Plugin extends PHPUnit_Framework_TestCase class KrbAuthentication_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class Managesieve_Plugin extends PHPUnit_Framework_TestCase class Managesieve_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class Parser extends PHPUnit_Framework_TestCase class Parser extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class Tokenizer extends PHPUnit_Framework_TestCase class Tokenizer extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class Managesieve_Vacation extends PHPUnit_Framework_TestCase class Managesieve_Vacation extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class Markasjunk_Plugin extends PHPUnit_Framework_TestCase class Markasjunk_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class NewUserDialog_Plugin extends PHPUnit_Framework_TestCase class NewUserDialog_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class NewUserIdentity_Plugin extends PHPUnit_Framework_TestCase class NewUserIdentity_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class NewmailNotifier_Plugin extends PHPUnit_Framework_TestCase class NewmailNotifier_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class Password_Plugin extends PHPUnit_Framework_TestCase class Password_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class RedundantAttachments_Plugin extends PHPUnit_Framework_TestCase class RedundantAttachments_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class ShowAdditionalHeaders_Plugin extends PHPUnit_Framework_TestCase class ShowAdditionalHeaders_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class SquirrelmailUsercopy_Plugin extends PHPUnit_Framework_TestCase class SquirrelmailUsercopy_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class SubscriptionsOption_Plugin extends PHPUnit_Framework_TestCase class SubscriptionsOption_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class Userinfo_Plugin extends PHPUnit_Framework_TestCase class Userinfo_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class VcardAttachments_Plugin extends PHPUnit_Framework_TestCase class VcardAttachments_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class VirtuserFile_Plugin extends PHPUnit_Framework_TestCase class VirtuserFile_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class VirtuserQuery_Plugin extends PHPUnit_Framework_TestCase class VirtuserQuery_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -1,6 +1,6 @@
<?php <?php
class Zipdownload_Plugin extends PHPUnit_Framework_TestCase class Zipdownload_Plugin extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_BaseReplacer extends PHPUnit_Framework_TestCase class Framework_BaseReplacer extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_Bootstrap extends PHPUnit_Framework_TestCase class Framework_Bootstrap extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_Browser extends PHPUnit_Framework_TestCase class Framework_Browser extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_Cache extends PHPUnit_Framework_TestCase class Framework_Cache extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -7,7 +7,7 @@
* @group iconv * @group iconv
* @group mbstring * @group mbstring
*/ */
class Framework_Charset extends PHPUnit_Framework_TestCase class Framework_Charset extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_Config extends PHPUnit_Framework_TestCase class Framework_Config extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_Contacts extends PHPUnit_Framework_TestCase class Framework_Contacts extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_ContentFilter extends PHPUnit_Framework_TestCase class Framework_ContentFilter extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_Csv2vcard extends PHPUnit_Framework_TestCase class Framework_Csv2vcard extends PHPUnit\Framework\TestCase
{ {
function test_import_generic() function test_import_generic()

@ -6,7 +6,7 @@
* @package Tests * @package Tests
* @group database * @group database
*/ */
class Framework_DB extends PHPUnit_Framework_TestCase class Framework_DB extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -7,7 +7,7 @@
* @group database * @group database
* @group mssql * @group mssql
*/ */
class Framework_DBMssql extends PHPUnit_Framework_TestCase class Framework_DBMssql extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -7,7 +7,7 @@
* @group database * @group database
* @group mysql * @group mysql
*/ */
class Framework_DBMysql extends PHPUnit_Framework_TestCase class Framework_DBMysql extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -7,7 +7,7 @@
* @group database * @group database
* @group oracle * @group oracle
*/ */
class Framework_DBOracle extends PHPUnit_Framework_TestCase class Framework_DBOracle extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -7,7 +7,7 @@
* @group database * @group database
* @group postgres * @group postgres
*/ */
class Framework_DBPgsql extends PHPUnit_Framework_TestCase class Framework_DBPgsql extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -7,7 +7,7 @@
* @group database * @group database
* @group sqlite * @group sqlite
*/ */
class Framework_DBSqlite extends PHPUnit_Framework_TestCase class Framework_DBSqlite extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -7,7 +7,7 @@
* @group database * @group database
* @group sqlrsv * @group sqlrsv
*/ */
class Framework_DBSqlsrv extends PHPUnit_Framework_TestCase class Framework_DBSqlsrv extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_Enriched extends PHPUnit_Framework_TestCase class Framework_Enriched extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_Html extends PHPUnit_Framework_TestCase class Framework_Html extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class rc_html2text extends PHPUnit_Framework_TestCase class rc_html2text extends PHPUnit\Framework\TestCase
{ {
function data_html2text() function data_html2text()

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_Image extends PHPUnit_Framework_TestCase class Framework_Image extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_Imap extends PHPUnit_Framework_TestCase class Framework_Imap extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_ImapCache extends PHPUnit_Framework_TestCase class Framework_ImapCache extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_ImapGeneric extends PHPUnit_Framework_TestCase class Framework_ImapGeneric extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_ImapSearch extends PHPUnit_Framework_TestCase class Framework_ImapSearch extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_Ldap extends PHPUnit_Framework_TestCase class Framework_Ldap extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_LdapGeneric extends PHPUnit_Framework_TestCase class Framework_LdapGeneric extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_MessageHeader extends PHPUnit_Framework_TestCase class Framework_MessageHeader extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_MessagePart extends PHPUnit_Framework_TestCase class Framework_MessagePart extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_Mime extends PHPUnit_Framework_TestCase class Framework_Mime extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_Rcube extends PHPUnit_Framework_TestCase class Framework_Rcube extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_ResultIndex extends PHPUnit_Framework_TestCase class Framework_ResultIndex extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_ResultMultifolder extends PHPUnit_Framework_TestCase class Framework_ResultMultifolder extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_ResultSet extends PHPUnit_Framework_TestCase class Framework_ResultSet extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_ResultThread extends PHPUnit_Framework_TestCase class Framework_ResultThread extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_Smtp extends PHPUnit_Framework_TestCase class Framework_Smtp extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_Spellchecker extends PHPUnit_Framework_TestCase class Framework_Spellchecker extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_SpellcheckerAtd extends PHPUnit_Framework_TestCase class Framework_SpellcheckerAtd extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_SpellcheckerEnchant extends PHPUnit_Framework_TestCase class Framework_SpellcheckerEnchant extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_SpellcheckerGoogie extends PHPUnit_Framework_TestCase class Framework_SpellcheckerGoogie extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_SpellcheckerPspell extends PHPUnit_Framework_TestCase class Framework_SpellcheckerPspell extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_StringReplacer extends PHPUnit_Framework_TestCase class Framework_StringReplacer extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_Text2Html extends PHPUnit_Framework_TestCase class Framework_Text2Html extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_User extends PHPUnit_Framework_TestCase class Framework_User extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_Utils extends PHPUnit_Framework_TestCase class Framework_Utils extends PHPUnit\Framework\TestCase
{ {
/** /**

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_VCard extends PHPUnit_Framework_TestCase class Framework_VCard extends PHPUnit\Framework\TestCase
{ {
function _srcpath($fn) function _srcpath($fn)

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Framework_Washtml extends PHPUnit_Framework_TestCase class Framework_Washtml extends PHPUnit\Framework\TestCase
{ {
/** /**
* A helper method to remove comments added by rcube_washtml * A helper method to remove comments added by rcube_washtml

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class MailFunc extends PHPUnit_Framework_TestCase class MailFunc extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()

@ -4,7 +4,7 @@
* *
* @package Tests * @package Tests
*/ */
class Rcmail_OutputHtml extends PHPUnit_Framework_TestCase class Rcmail_OutputHtml extends PHPUnit\Framework\TestCase
{ {
/** /**
* Test get_template_logo() * Test get_template_logo()

@ -5,7 +5,7 @@
* *
* @package Tests * @package Tests
*/ */
class Rcmail_Rcmail extends PHPUnit_Framework_TestCase class Rcmail_Rcmail extends PHPUnit\Framework\TestCase
{ {
function setUp() function setUp()
{ {

Loading…
Cancel
Save