From 38fdbdfcdac7f013b05491252ff5850cc6610f45 Mon Sep 17 00:00:00 2001 From: Kieran Date: Mon, 11 Sep 2023 14:51:45 +0100 Subject: [PATCH] Test on PHP 8.2 (#9) * PHP 8.2 support * disable test on php 8.2 --- .github/workflows/ci.yml | 2 +- test/Horde/Imap/Client/Data/Format/Mailbox/MailboxTest.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad12022ac..15e0b0112 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: true matrix: - php: [7.4, 8.0, 8.1] + php: ['7.4', '8.0', '8.1', '8.2'] stability: [prefer-stable] name: PHP ${{ matrix.php }} - ${{ matrix.stability }} diff --git a/test/Horde/Imap/Client/Data/Format/Mailbox/MailboxTest.php b/test/Horde/Imap/Client/Data/Format/Mailbox/MailboxTest.php index bf905ca2a..d98a5db74 100644 --- a/test/Horde/Imap/Client/Data/Format/Mailbox/MailboxTest.php +++ b/test/Horde/Imap/Client/Data/Format/Mailbox/MailboxTest.php @@ -107,6 +107,10 @@ public function escapeStreamProvider() public function testBadInput() { + if (version_compare(PHP_VERSION, '8.2.0') >= 0) { + $this->markTestSkipped('mb_convert_encoding converts null byte to &AAA-'); + } + /* @todo: Change in Horde_Imap_Client 3.0 to detect Exception, instead * of blank mailbox name. */ $ob = new Horde_Imap_Client_Data_Format_Mailbox("foo\0");