still trying to fix imap

This commit is contained in:
Dennis Eichhorn 2022-09-30 17:46:05 +02:00
parent 064d5f2e85
commit 01615d3df7
3 changed files with 16 additions and 4 deletions

View File

@ -97,7 +97,7 @@ jobs:
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, gd, zip, dom, mysql, pgsql, sqlite, imap, bcmath, redis, memcached
extensions: mbstring, gd, zip, dom, mysql, pgsql, sqlite, bcmath, redis, memcached
ini-values: opcache.jit_buffer_size=256M, opcache.jit=1235, pcre.jit=1
coverage: pcov
- name: Get Composer Cache Directory
@ -137,7 +137,7 @@ jobs:
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, gd, zip, dom, mysql, pgsql, sqlite, imap, bcmath, redis, memcached
extensions: mbstring, gd, zip, dom, mysql, pgsql, sqlite, bcmath, redis, memcached
ini-values: opcache.jit_buffer_size=256M, opcache.jit=1235, pcre.jit=1
- name: Get Composer Cache Directory
id: composer-cache
@ -179,7 +179,7 @@ jobs:
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, gd, zip, dom, mysql, pgsql, sqlite, imap, bcmath, redis, memcached
extensions: mbstring, gd, zip, dom, mysql, pgsql, sqlite, bcmath, redis, memcached
ini-values: opcache.jit_buffer_size=256M, opcache.jit=1235, pcre.jit=1
- name: Get Composer Cache Directory
id: composer-cache
@ -239,7 +239,7 @@ jobs:
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, gd, zip, dom, mysql, pgsql, sqlite, imap, bcmath, redis, memcached
extensions: mbstring, gd, zip, dom, mysql, pgsql, sqlite, bcmath, redis, memcached
ini-values: opcache.jit_buffer_size=256M, opcache.jit=1235, pcre.jit=1
- name: PHP linting
run: |

View File

@ -33,6 +33,12 @@ final class ImapTest extends \PHPUnit\Framework\TestCase
*/
protected function setUp() : void
{
if (!\extension_loaded('imap')) {
$this->markTestSkipped(
'The imap extension is not available.'
);
}
$this->handler = new Imap('testuser', 'testuser', 143);
$this->handler->host = '127.0.0.1';
$this->handler->flags = '/imap/notls/norsh/novalidate-cert';

View File

@ -33,6 +33,12 @@ final class Pop3Test extends \PHPUnit\Framework\TestCase
*/
protected function setUp() : void
{
if (!\extension_loaded('imap')) {
$this->markTestSkipped(
'The imap extension is not available.'
);
}
$this->handler = new Pop3('testuser', 'testuser', 110);
$this->handler->host = '127.0.0.1';
$this->handler->flags = '/pop3/notls';